mirror of https://github.com/apache/openjpa.git
Fixed directory issues to ensure that this build file can be run from a different directory (such as when running the integration-test).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@531074 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
42f0d50d02
commit
149011a3df
|
@ -72,13 +72,21 @@
|
||||||
<!-- now run the tool to generate java files from the db schema -->
|
<!-- now run the tool to generate java files from the db schema -->
|
||||||
<taskdef name="reversemappingtool" classpathref="classpath"
|
<taskdef name="reversemappingtool" classpathref="classpath"
|
||||||
classname="org.apache.openjpa.jdbc.ant.ReverseMappingToolTask"/>
|
classname="org.apache.openjpa.jdbc.ant.ReverseMappingToolTask"/>
|
||||||
<reversemappingtool package="reversemapping" directory="."
|
<reversemappingtool package="reversemapping" directory="${basedir}"
|
||||||
innerIdentityClasses="true"
|
innerIdentityClasses="true"
|
||||||
customizerProperties="reverse-customizer.properties">
|
customizerProperties="${basedir}/reverse-customizer.properties">
|
||||||
<config connectiondrivername="${dbdriver}" connectionurl="${dburl}"
|
<config connectiondrivername="${dbdriver}" connectionurl="${dburl}"
|
||||||
connectionusername="${dbuser}" connectionpassword="${dbpass}"/>
|
connectionusername="${dbuser}" connectionpassword="${dbpass}"/>
|
||||||
<codeformat tabSpaces="4" spaceBeforeParen="false"
|
<codeformat tabSpaces="4" spaceBeforeParen="false"
|
||||||
braceOnSameLine="true"/>
|
braceOnSameLine="true"/>
|
||||||
</reversemappingtool>
|
</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>
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue