jon 01/03/11 21:07:31
Modified: build build-velocity.xml
Log:
worked on improving the dist target and clean targets
Revision Changes Path
1.44 +26 -9 jakarta-velocity/build/build-velocity.xml
Index: build-velocity.xml
===================================================================
RCS file: /home/cvs/jakarta-velocity/build/build-velocity.xml,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- build-velocity.xml 2001/03/12 02:28:00 1.43
+++ build-velocity.xml 2001/03/12 05:07:31 1.44
@@ -338,6 +338,17 @@
<antcall target="forumdemo" />
</target>
+
+ <target name="examples-clean-all" depends="examples-clean-anakia">
+ <delete>
+ <fileset dir="${example.dir}" includes="**/*.class"/>
+ </delete>
+ </target>
+
+ <target name="examples-clean-anakia">
+ <delete dir="${example.dir}/anakia/docs"/>
+ </target>
+
<!-- =================================================================== -->
<!-- Creates the API documentation -->
<!-- =================================================================== -->
@@ -366,7 +377,7 @@
<!-- =================================================================== -->
<!-- Package -->
<!-- =================================================================== -->
- <target name="dist" depends="test-clean,jar,javadocs">
+ <target name="dist" depends="examples-clean-anakia,test-clean,jar,javadocs">
<mkdir dir="${dist.dir}"/>
<mkdir dir="${dist.dir}/src/java"/>
@@ -406,12 +417,20 @@
<include name="**"/>
</fileset>
</copy>
-
- <chmod file="${dist.dir}/examples/test.sh" perm="+x"/>
+ <copy
+ file="../LICENSE"
+ tofile="${dist.dir}/LICENSE"
+ />
+
+ <copy
+ file="../README.txt"
+ tofile="${dist.dir}/README.txt"
+ />
+
<copy
- file="${build.dir}/${project}.jar"
- tofile="${dist.dir}/${project}.jar"
+ file="${build.dir}/${final.name}.jar"
+ tofile="${dist.dir}/${final.name}.jar"
/>
<jar
@@ -428,11 +447,9 @@
<!-- Cleans up the build directory -->
<!-- =================================================================== -->
<target name="clean">
-
- <delete dir="${build.dir}"/>
-
+ <delete dir="${build.dir}"/>
</target>
-
+
<!-- =================================================================== -->
<!-- Make HTML version of Velocity documentation -->
<!-- =================================================================== -->