openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: Enhance : clarification needed
Date Tue, 17 Aug 2010 13:42:59 GMT

> 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.

Mime
View raw message