ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Salter <marksal...@talktalk.net>
Subject Re: Under a parent directory delete only 4 out of 6 child directories [non-empty]
Date Mon, 03 Nov 2008 13:42:10 GMT
Rohit P wrote:
> Hi,
> I have a directory "Parent" containing 6 "child" directories with files.I
> have a task of deleting only 4 "child" directories with their files.
The second example in the manual does (I think) give you the answer you
need:-

	http://ant.apache.org/manual/CoreTasks/delete.html

So for your child deletions...

<project name="Check Deletion task" basedir="." default="main">

    <target name="main">
        <delete dir="C:\Rootdir\Maindir\Child 1"/>
        <delete dir="C:\Rootdir\Maindir\Child 2"/>
        <delete dir="C:\Rootdir\Maindir\Child5"/>
        <delete dir="C:\Rootdir\Maindir\Child6"/>
    </target>
</project>


Is that what you wanted?

-- 
Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message