You would probably have to loop through the FOO directory and delete each file there that is in the DllDir.
But, a stupid question. Why are you copying files in the DllDir that you later want to delete? That doesn't seem to be the correct approach. BOb > -----Original Message----- > From: ptr2009 [mailto:ptrajku...@gmail.com] > Sent: Monday, March 30, 2009 8:34 PM > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] how to undo copy task > > > hey all > > Here is what I am trying to achieve. Consider two projects > > Project A > DataDir > SourceFiles > > Project B > DataDir > SourceFiles > > SolutionOutputDir > DllDir > > > I have a master nant build file that builds Project A and Project B. As > part > of building both projects copies certain owned data files to DllDir using > the copy task. > > > Project A copy > > <copy todir="${DllDir}" > > <fileset basedir="${SolutionDir}/FOO/"> > <include name="**/*.*"/> > </fileset> > </copy> > > Project B copy > > <copy todir="${DllDir}" > > <fileset basedir="${SolutionDir}/BAR/"> > <include name="**/*.*"/> > </fileset> > </copy> > > > Now what I want to do is a clean target of each project that "undos" > the > copying that has occurred. Can this by achieved without actually deleting > DllDir ? All i want is for each file that exists in FOO dir to be deleted > from Dlldir > > Thanks > Raj > -- > View this message in context: http://www.nabble.com/how-to-undo-copy-task- > tp22796090p22796090.html > Sent from the NAnt - Users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------ -- > ---- > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------------ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users