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

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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            j4nu5 Matthias Niehoff

            Dates

              Created:
              Updated:

              Slack

                Issue deployment