jruaux 2003/02/26 02:48:44
Modified: integration/eclipse build.xml
Log:
Added JUnit plugin version check
Revision Changes Path
1.5 +21 -7 jakarta-cactus/integration/eclipse/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/integration/eclipse/build.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- build.xml 24 Feb 2003 16:58:37 -0000 1.4
+++ build.xml 26 Feb 2003 10:48:44 -0000 1.5
@@ -35,7 +35,7 @@
Initialize source, target and dist properties
========================================================================
-->
- <target name="properties">
+ <target name="properties" depends="init.junitplugin.find">
<!-- Set the properties related to the source tree -->
<property name="src.dir" value="${base.dir}/src"/>
@@ -100,16 +100,30 @@
<!--
========================================================================
+ Find out the JUnit Eclipse plug-in version
+ ========================================================================
+ -->
+ <target name="init.junitplugin.find">
+
+ <condition property="junitplugin.version" value="m5">
+ <available classname="org.eclipse.jdt.junit">
+ <classpath>
+ <pathelement location="${eclipse.jdt.junit.jar}"/>
+ </classpath>
+ </available>
+ </condition>
+
+ <fail message="Eclipse version must be higher than M5"
+ unless="junitplugin.version"/>
+
+ </target>
+
+ <!--
+ ========================================================================
Compile the plugin
========================================================================
-->
<target name="compile" depends="init">
-
- <echo>
- ---------------------------------------------------------
- Currently needs a patched version of the Junit plugin
- ---------------------------------------------------------
- </echo>
<mkdir dir="${target.classes.dir}"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]