Author: epbernard
Date: 2007-07-20 19:51:23 -0400 (Fri, 20 Jul 2007)
New Revision: 12790
Modified:
trunk/HibernateExt/search/build.xml
Log:
Fix build dependency with entitymanager (for tests)
Modified: trunk/HibernateExt/search/build.xml
===================================================================
--- trunk/HibernateExt/search/build.xml 2007-07-20 20:34:47 UTC (rev 12789)
+++ trunk/HibernateExt/search/build.xml 2007-07-20 23:51:23 UTC (rev 12790)
@@ -91,6 +91,7 @@
<available file="${jpa-api.jar}" type="file"
property="jpa-api.jar.available"/>
<available file="${commons-annotations.jar}" type="file"
property="commons-annotations.jar.available"/>
<available file="${annotations.jar}" type="file"
property="annotations.jar.available"/>
+ <available file="${entitymanager.jar}" type="file"
property="entitymanager.jar.available"/>
<mkdir dir="${lib.dir}/test"/>
<mkdir dir="${build.testresources.dir}"/>
</target>
@@ -110,7 +111,12 @@
<ant inheritall="false" dir="${basedir}/../annotations"
target="jar"/>
</target>
- <target name="compile" depends="init,get.commons-annotations"
description="Compile the Java source code">
+ <target name="get.entitymanager" depends="init"
unless="entitymanager.jar.available">
+ <ant inheritall="false" dir="${basedir}/../entitymanager"
target="clean"/>
+ <ant inheritall="false" dir="${basedir}/../entitymanager"
target="jar"/>
+ </target>
+
+ <target name="compile" depends="init,get.commons-annotations"
description="Compile the Java source code">
<available
classname="org.eclipse.core.launcher.Main"
property="build.compiler"
@@ -135,7 +141,7 @@
</copy>
</target>
- <target name="compiletest"
depends="init,get.jpa-api,get.annotations,compile" description="Compile the
tests">
+ <target name="compiletest"
depends="init,get.jpa-api,get.annotations,get.entitymanager,compile"
description="Compile the tests">
<available
classname="org.eclipse.core.launcher.Main"
property="build.compiler"
Show replies by date