aheritier 2004/07/19 13:08:57
Modified: ant/src/plugin-resources/templates build.jelly
Log:
Don't compile tests classes if junit isn't present.
Revision Changes Path
1.22 +6 -3 maven-plugins/ant/src/plugin-resources/templates/build.jelly
Index: build.jelly
===================================================================
RCS file: /home/cvs/maven-plugins/ant/src/plugin-resources/templates/build.jelly,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- build.jelly 19 Jul 2004 18:13:09 -0000 1.21
+++ build.jelly 19 Jul 2004 20:08:57 -0000 1.22
@@ -227,14 +227,17 @@
<target
name="junit-present"
- depends="compile-tests"
+ depends="init"
unless="Junit.present">
- <echo>Junit isn't present in your $${ANT_HOME}/lib directory. Tests not
done.</echo>
+ <echo>================================= WARNING
================================</echo>
+ <echo>Junit isn't present in your $${ANT_HOME}/lib directory. Tests not
executed.</echo>
+
<echo>==========================================================================</echo>
</target>
<target
name="compile-tests"
- depends="compile">
+ depends="junit-present,compile"
+ if="Junit.present">
<j:if test="${unitTestSourcesPresent}">
<mkdir dir="$${testclassesdir}"/>
<javac
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]