From: <fwi...@us...> - 2009-08-17 18:41:20
|
Revision: 6692 http://jython.svn.sourceforge.net/jython/?rev=6692&view=rev Author: fwierzbicki Date: 2009-08-17 18:41:12 +0000 (Mon, 17 Aug 2009) Log Message: ----------- Added "devclean": deletes everything but the generated antlr files, cachedir, and Lib. Modified Paths: -------------- trunk/jython/build.xml Modified: trunk/jython/build.xml =================================================================== --- trunk/jython/build.xml 2009-08-17 13:25:59 UTC (rev 6691) +++ trunk/jython/build.xml 2009-08-17 18:41:12 UTC (rev 6692) @@ -108,7 +108,7 @@ <target name="full-build" depends="full-check, install" description="a full build with svn checkout" /> <target name="needed-check" unless="full-build"> - <uptodate property="antlr.notneeded" targetfile="${dist.dir}/${jython.dev.jar}"> + <uptodate property="antlr.notneeded" targetfile="${gensrc.dir}/org/python/antlr/PythonParser.java"> <srcfiles dir="grammar" includes="*.g" /> </uptodate> </target> @@ -307,6 +307,23 @@ </delete> </target> + <target name="devclean" depends="init" + description="clean up build working directories, without deleting antlr files, cachedir, or Lib."> + + <delete includeemptydirs="true" failonerror="false"> + <fileset dir="${output.dir}" includes="**/*" excludes="gensrc/**"/> + </delete> + <!-- deletes all files and subdirectories of ${dist.dir}, without ${dist.dir} itself. --> + <delete includeemptydirs="true" failonerror="false"> + <fileset dir="${dist.dir}" includes="**/*" excludes="cachedir/**,Lib/**"/> + </delete> + <!-- delete the installation .jar file from ${work.dir}, but no other files --> + <delete failonerror="false"> + <fileset dir="${work.dir}" includes="jython*.jar" /> + </delete> + </target> + + <!-- clean svn.checkout.dir if we really checkout --> <target name="clean-checkout-dir" if="do.checkout"> <delete includeemptydirs="true" failonerror="false"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |