Matthias Niehoff created OPENJPA-2225:
-----------------------------------------
Summary: [BuildTimeEnhancement] Ant PCEnhancerTask enhances first
PU in a persistence.xml only
Key: OPENJPA-2225
URL: https://issues.apache.org/jira/browse/OPENJPA-2225
Project: OpenJPA
Issue Type: Bug
Components: Enhance, jpa
Affects Versions: 2.2.0
Reporter: Matthias Niehoff
Priority: Minor
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira