commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject svn commit: r239338 - /jakarta/commons/sandbox/proxy/trunk/build.xml
Date Tue, 23 Aug 2005 04:20:24 GMT
Author: jcarman
Date: Mon Aug 22 21:20:22 2005
New Revision: 239338

URL: http://svn.apache.org/viewcvs?rev=239338&view=rev
Log:
Added version number to generated jar file name.

Modified:
    jakarta/commons/sandbox/proxy/trunk/build.xml

Modified: jakarta/commons/sandbox/proxy/trunk/build.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/build.xml?rev=239338&r1=239337&r2=239338&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/build.xml (original)
+++ jakarta/commons/sandbox/proxy/trunk/build.xml Mon Aug 22 21:20:22 2005
@@ -1,6 +1,6 @@
 <project name="commons-proxy" basedir="." default="compile-java">
     <property file="build.properties"/>
-
+    <property name="version" value="1.0-SNAPSHOT" />
     <property name="dir.src" location="src"/>
     <property name="dir.src.java" location="${dir.src}/java"/>
     <property name="dir.src.test" location="${dir.src}/test"/>
@@ -67,6 +67,7 @@
         <delete dir="${dir.build}"/>
         <delete dir="${dir.dist}"/>
     </target>
+
     <target name="compile-java" depends="get-dependencies">
         <mkdir dir="${dir.build.java}"/>
         <javac
@@ -101,9 +102,10 @@
         <javadoc destdir="${dir.dist.javadoc}" sourcepath="${dir.src.java}" packagenames="*">
         </javadoc>
     </target>
-    <target name="dist" depends="build,javadoc">
+
+    <target name="dist" depends="clean,build,javadoc">
         <mkdir dir="${dir.dist}"/>
-        <jar basedir="${dir.build.java}" destfile="${dir.dist}/${ant.project.name}.jar"/>
+        <jar basedir="${dir.build.java}" destfile="${dir.dist}/${ant.project.name}-${version}.jar"/>
     </target>
 
     <target name="test" depends="compile-test">



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message