You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by he...@apache.org on 2007/01/09 22:04:24 UTC
svn commit: r494573 - /velocity/engine/trunk/build/build.xml
Author: henning
Date: Tue Jan 9 13:04:23 2007
New Revision: 494573
URL: http://svn.apache.org/viewvc?view=rev&rev=494573
Log:
Typed "ant clean" once too often. :-(
Now "clean" deletes all generated files but leaves the lib and
test-lib directories untouched.
Only "real-clean" deletes all files and the bin directory.
Modified:
velocity/engine/trunk/build/build.xml
Modified: velocity/engine/trunk/build/build.xml
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/build/build.xml?view=diff&rev=494573&r1=494572&r2=494573
==============================================================================
--- velocity/engine/trunk/build/build.xml (original)
+++ velocity/engine/trunk/build/build.xml Tue Jan 9 13:04:23 2007
@@ -727,12 +727,25 @@
description="Generates the Velocity distribution files">
</target>
+ <!-- ======================================================================= -->
+ <!-- Cleans up the build directory. Leave Libs unharmed to avoid re-download -->
+ <!-- ======================================================================= -->
+ <target name="clean" depends="examples-clean"
+ description="Cleans all generated files except downloaded libs">
+ <delete includeEmptyDirs="true" quiet="true">
+ <fileset dir="${build.dir}">
+ <exclude name="lib/**" />
+ <exclude name="test-lib/**" />
+ </fileset>
+ </delete>
+ </target>
+
<!-- =================================================================== -->
- <!-- Cleans up the build directory -->
+ <!-- Really cleans up the build directory -->
<!-- =================================================================== -->
- <target name="clean" depends="examples-clean"
+ <target name="real-clean" depends="examples-clean"
description="Cleans all generated files">
- <delete dir="${build.dir}" quiet="true"/>
+ <delete includeEmptyDirs="true" quiet="true" dir="${build.dir}" />
</target>
<!-- =================================================================== -->