ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim O'Brien" <tobr...@discursive.com>
Subject [PATCH] Convenience "run" target in antidote build.xml
Date Wed, 23 Jan 2002 19:23:07 GMT
Description:

Added a run target to the Antidote build.xml file.  Target executes Antidote
after a build, and doesn't require distribution targets to be executed.
Faster turn around during development.

Patch file:

Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-ant-antidote/build.xml,v
retrieving revision 1.4
diff -u -r1.4 build.xml
--- build.xml	8 Jan 2002 12:50:48 -0000	1.4
+++ build.xml	23 Jan 2002 19:17:10 -0000
@@ -234,6 +234,22 @@
   </target>

   <!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+  <!-- Runs Antidote after a Build, this is here to ease the dev cycle -->
+  <!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+  <target name="run" description="Runs Antidote after a build"
+          depends="build" >
+    <java classname="org.apache.tools.ant.gui.Main"
+          fork="true">
+      <classpath>
+       <pathelement location="${build.lib}/antidote.jar"/>
+       <fileset dir="${lib.dir}">
+        <include name="**/*.jar"/>
+       </fileset>
+      </classpath>
+    </java>
+   </target>
+
+  <!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
   <!-- Installs ant -->
   <!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
   <target name="install" if="ant.install">


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message