Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2225

[BuildTimeEnhancement] Ant PCEnhancerTask enhances first PU in a persistence.xml only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2.0
    • None
    • Enhance, jpa

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            j4nu5 Matthias Niehoff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: