openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Niehoff (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2225) [BuildTimeEnhancement] Ant PCEnhancerTask enhances first PU in a persistence.xml only
Date Mon, 09 Jul 2012 08:16:33 GMT
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

        

Mime
View raw message