Hi
I do something similiar, takre a look at mine:
<target name="CleanupWorkFiles" if="cleanupworkfileswhendone"
depends="init, CleanOutput, getVSSFiles, compile, PackageDist">
<delete includeEmptyDirs="true">
<fileset dir="${buildpath}" includes="**/*.*,**"
excludes="DIST/*.*,${logpath}/*.*" defaultexcludes="no"/>
</delete>
</target>
cheers
-----Original Message-----
From: Vijay Gupta [mailto:[EMAIL PROTECTED]]
Sent: 27 April 2001 09:01
To: Ant Users List
Subject: RE: VSS Problem
Hi all,
now everything works fine, but i have one more question. I have two
task 'dist' and 'delete', 'delete' task depends on 'dist' task. in delete i
am trying to delete build directory that is created while making the build.
But it does not delete the directory, and if i delete the build directory
in dist itself it works fine. what can be the problem? is there any way to
get it work in a different task. a snapshot of tasks is following:
"
<target name="dist" depends="compile" description="Generate the
distribution" >
<copy todir="${javadist}" >
<fileset dir="${build}" >
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy todir="${jspdist}" >
<fileset dir="${src}/jsp" excludes="**/*.java">
<exclude name=".scc"/>
</fileset>
</copy>
<jar destfile="${jspdist}/Dispatcher.jar" basedir="${build}" includes
="com.kanrad.gpis.dispatcher/**"/>
<!--delete dir="${build}"/-->
</target>
<target name="delete" depends="dist" description="Clean up" >
<!-- Delete the ${build} directory tree -->
<delete dir="${build}"/>
</target>
"
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>