You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ninju Bohra <ni...@yahoo.com> on 2005/04/07 18:00:25 UTC
Having trouble with syntax
Hello all,
I am trying to selectively delete 80% of a directory
tree with the following calls:
<delete includeemptydirs="true">
<fileset dir="deploy/Webroot">
<exclude name="WEB-INF/*.xml"/>
<exclude name="WEB-INF/**/*"/>
</fileset>
</delete>
And I am ending up deleting too much.
What I want to do is NOT delete the contents of the
WEB-INF directory NOR its sub-directories.
Any suggestions.
__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Having trouble with syntax
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Bohra,
Try <exclude name ="WEB-INF/**"/>
Antoine
> Hello all,
>
> I am trying to selectively delete 80% of a directory
> tree with the following calls:
>
> <delete includeemptydirs="true">
> <fileset dir="deploy/Webroot">
> <exclude name="WEB-INF/*.xml"/>
> <exclude name="WEB-INF/**/*"/>
> </fileset>
> </delete>
>
> And I am ending up deleting too much.
>
> What I want to do is NOT delete the contents of the
> WEB-INF directory NOR its sub-directories.
>
> Any suggestions.
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org