It works fine ! I can now choose the persistence unit for enhancing at build-time.
Thanks. On 17 août 2010, at 15:42, Pinaki Poddar wrote: > >> 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.