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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: Enhance, jpa
    • Labels:

      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

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

              Dates

              • Created:
                Updated: