Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.2.0
-
None
Description
When using the Ant PCEnhancerTask only the first PU in a persistence.xml is enhanced.
<taskdef name="openjpac" classname="org.apache.openjpa.ant.PCEnhancerTask" classpathref="ref" />
<target name="enhance">
<openjpac>
<classpath refid="ref"/>
<config propertiesFile="bin/META-INF/persistence.xml" />
</openjpac>
</target>
Running the Task as JavaTask, all PUs are enhanced:
<target name="openjpa-enhance" >
<java classname="org.apache.openjpa.enhance.PCEnhancer"
failonerror="true">
<arg line="-p 'META-INF/persistence.xml'"/>
<classpath>
[...]
</classpath>
</java>
</target>
The Ant Task should also incldue all PUs.