> I'm unable to find the information about how to specify the persistence
unit to use from ant.
> It might not be possible. 
 
        <path id="openjpa.compile.classpath">
                <pathelement path="${openjpa.jar}" />
                <pathelement path="${classes.dir}" />
                <pathelement path="${rsrc.dir}" />
        </path>

        <target name="compile.openjpa">
                <java classname="org.apache.openjpa.enhance.PCEnhancer"
                      failonerror="true"
                      fork="true">
                        <classpath refid="openjpa.compile.classpath" />
                        <arg value="-properties" />
                        <arg value="META-INF/persistence.xml#exchange" />
                </java>
        </target>

{rsrc.dir} points to parent of META-INF dir that contains the
persistence.xml file.


-----
Pinaki 
-- 
View this message in context: 
http://openjpa.208410.n2.nabble.com/Enhance-clarification-needed-tp5415698p5432136.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to