Author: danieldominguez
Date: 2009-12-18 12:22:17 -0500 (Fri, 18 Dec 2009)
New Revision: 424
Modified:
branches/ODE/ODE-2.0-maven/dao-hibernate/pom.xml
Log:
Post process xdoclet generated file to add not-found="ignore" to
HProcess
Modified: branches/ODE/ODE-2.0-maven/dao-hibernate/pom.xml
===================================================================
--- branches/ODE/ODE-2.0-maven/dao-hibernate/pom.xml 2009-12-18 15:29:09 UTC (rev 423)
+++ branches/ODE/ODE-2.0-maven/dao-hibernate/pom.xml 2009-12-18 17:22:17 UTC (rev 424)
@@ -91,6 +91,30 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <!--doclet does not support not-found="ignore" -->
+ <groupId>org.codehaus.groovy.maven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <source>
+ import java.io.File
+ def process_instance_hbm_file = new
File('${project.build.outputDirectory}',
'org/apache/ode/daohib/bpel/hobj/HProcessInstance.hbm.xml')
+ def contents = process_instance_hbm_file.text
+ if (!contents.contains('not-found="ignore"')) {
+ process_instance_hbm_file.text =
contents.replace('class="org.apache.ode.daohib.bpel.hobj.HProcess"',
+ 'not-found="ignore"
class="org.apache.ode.daohib.bpel.hobj.HProcess"')
+ }
+ </source>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
Show replies by date