OPENJPA-374

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@629173 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Dick 2008-02-19 17:49:21 +00:00
parent 69366d11cb
commit f99bdbce5f
2 changed files with 26 additions and 10 deletions

View File

@ -388,14 +388,16 @@
<configuration>
<tasks>
<ant antfile="src/main/ant/enhancer.xml"
target="enhance.all.entities"
target="enhance"
inheritRefs="true">
<!--
InheritAll doesn't seem to work. Pass in
properties manually.
-->
<property name="maven.test.skip"
value="${maven.test.skip}"/>
InheritAll doesn't seem to work. Pass in
properties manually.
-->
<property name="maven.test.skip"
value="${maven.test.skip}" />
<property name="test"
value="${test}" />
<property name="outdir"
value="${project.build.outputDirectory}" />
<property
@ -403,7 +405,7 @@
value="${project.build.testOutputDirectory}" />
<property name="openjpa.loglevel"
value="${openjpa.loglevel}" />
</ant>
</ant>
</tasks>
</configuration>
<goals>

View File

@ -31,18 +31,32 @@
<istrue value="${maven.test.skip}" />
</condition>
<condition property="test.isfalse">
<equals arg1="${test}" arg2="false" />
</condition>
<!-- =================================
target: enhance
================================= -->
<target name="enhance"
description="--> run the enhancer unless test=false"
unless="test.isfalse">
<antcall target="enhance.all.entities"
inheritall="true"
inheritrefs="true" />
</target>
<!-- =================================
target: enhance.all.entities
================================= -->
<target name="enhance.all.entities"
depends=""
description="--> enhance the test entities"
unless="maven.test.skip.istrue">
<echo> running enhancer</echo>
<!--
Inherited references won't be present until the task is called.
Therefore the path definition needs to stay inside the task.
-->
-->
<path id="cp">
<path refid="maven.test.classpath" />
<path refid="maven.compile.classpath" />