You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by he...@apache.org on 2012/11/22 23:51:08 UTC

svn commit: r1412701 - /openjpa/site/trunk/content/artifacts/enhance.xml

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