Author: mprudhom
Date: Sat Apr 21 11:19:10 2007
New Revision: 531074

URL: http://svn.apache.org/viewvc?view=rev&rev=531074
Log:
Fixed directory issues to ensure that this build file can be run from a 
different directory (such as when running the integration-test).

Modified:
    
incubator/openjpa/trunk/openjpa-examples/src/main/java/reversemapping/build.xml

Modified: 
incubator/openjpa/trunk/openjpa-examples/src/main/java/reversemapping/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-examples/src/main/java/reversemapping/build.xml?view=diff&rev=531074&r1=531073&r2=531074
==============================================================================
--- 
incubator/openjpa/trunk/openjpa-examples/src/main/java/reversemapping/build.xml 
(original)
+++ 
incubator/openjpa/trunk/openjpa-examples/src/main/java/reversemapping/build.xml 
Sat Apr 21 11:19:10 2007
@@ -72,13 +72,21 @@
         <!-- now run the tool to generate java files from the db schema -->
         <taskdef name="reversemappingtool" classpathref="classpath"
             classname="org.apache.openjpa.jdbc.ant.ReverseMappingToolTask"/>
-        <reversemappingtool package="reversemapping" directory="."
+        <reversemappingtool package="reversemapping" directory="${basedir}"
             innerIdentityClasses="true"
-            customizerProperties="reverse-customizer.properties">
+            customizerProperties="${basedir}/reverse-customizer.properties">
             <config connectiondrivername="${dbdriver}" connectionurl="${dburl}"
                 connectionusername="${dbuser}" connectionpassword="${dbpass}"/>
             <codeformat tabSpaces="4" spaceBeforeParen="false"
                 braceOnSameLine="true"/>
         </reversemappingtool>
+
+        <!--
+            the reverse mapping tool always outputs the orm.xml file to
+            the current directory; move it to the base directory in case
+            we are executing this build file from a different directory.
+        -->
+        <move file="${user.dir}/orm.xml"
+            tofile="${basedir}/orm.xml" failonerror="false"/>
     </target>
 </project>


Reply via email to