Author: helenxu
Date: Tue Nov 20 20:14:17 2012
New Revision: 1411836

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

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

Added: openjpa/site/trunk/content/enhance.xml
URL: 
http://svn.apache.org/viewvc/openjpa/site/trunk/content/enhance.xml?rev=1411836&view=auto
==============================================================================
--- openjpa/site/trunk/content/enhance.xml (added)
+++ openjpa/site/trunk/content/enhance.xml Tue Nov 20 20:14:17 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


Reply via email to