openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hele...@apache.org
Subject svn commit: r1412701 - /openjpa/site/trunk/content/artifacts/enhance.xml
Date Thu, 22 Nov 2012 22:51:08 GMT
Author: helenxu
Date: Thu Nov 22 22:51:08 2012
New Revision: 1412701

URL: http://svn.apache.org/viewvc?rev=1412701&view=rev
Log:
CMS migration

Added:
    openjpa/site/trunk/content/artifacts/enhance.xml

Added: openjpa/site/trunk/content/artifacts/enhance.xml
URL: http://svn.apache.org/viewvc/openjpa/site/trunk/content/artifacts/enhance.xml?rev=1412701&view=auto
==============================================================================
--- openjpa/site/trunk/content/artifacts/enhance.xml (added)
+++ openjpa/site/trunk/content/artifacts/enhance.xml Thu Nov 22 22:51:08 2012
@@ -0,0 +1,27 @@
+<project name="jpa_enhance_builder">
+	<path id="enhance.cp">
+	        <pathelement location="${basedir}${file.separator}${build.dir}"/>
+
+	        <fileset dir="${basedir}${file.separator}${openjpa.libs}">
+	            <include name="**/*.jar"/>
+	        </fileset>
+	</path>
+	<property name="cp" refid="enhance.cp"/>
+	
+	<target name="openjpa.libs.check" unless="openjpa.libs">
+		<fail message="Please set -Dopenjpa.libs in your builder configuration!"/>
+	</target>
+	<target name="build.dir.check" unless="build.dir">
+		<fail message="Please set -Dbuild.dir in your builder configuration!"/>
+	</target>
+		
+	<target name="enhance" depends="openjpa.libs.check, build.dir.check">
+		<echo message="${cp}"/>
+		<taskdef name="openjpac" classname="org.apache.openjpa.ant.PCEnhancerTask">
+			<classpath refid="enhance.cp"/>
+		</taskdef>
+		<openjpac>
+			<classpath refid="enhance.cp"/>
+		</openjpac>
+	</target>
+</project>
\ No newline at end of file



Mime
View raw message