velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Kimpton" <ch...@kimptoc.net>
Subject Added a source option to the build.xml file
Date Wed, 21 Feb 2001 21:08:38 GMT
Hi,

I find having this target in the build.xml is useful for applications who
use these kind of tools;

H:\cvslocal\jakarta\jakarta-velocity\build>cvs diff -u
? velocity.log
cvs server: Diffing .
Index: build-velocity.xml
===================================================================
RCS file: /home/cvspublic/jakarta-velocity/build/build-velocity.xml,v
retrieving revision 1.28
diff -u -r1.28 build-velocity.xml
--- build-velocity.xml  2001/02/12 03:12:53     1.28
+++ build-velocity.xml  2001/02/21 21:05:15
@@ -237,6 +237,17 @@

   </target>

+  <!--
================================================================== -->
+  <!-- jars the source
          -->
+  <!--
================================================================== -->
+  <target name="jarsrc"
+          depends="prepare"
+          description="--> generates the velocity.src.jar file containing
source only">
+      <jar jarfile="${build.dir}/${final.name}.src.jar"
+          basedir="${build.src}"
+          excludes="**/package.html"/>
+  </target>
+
   <!--
=================================================================== -->
   <!-- Compiles the example
     -->
   <!--
=================================================================== -->



HTH
Chris


Mime
View raw message