You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rebhan, Gilbert" <Gi...@huk-coburg.de> on 2005/06/09 12:23:48 UTC
[delete] dir, delete all but one subdir
Hi,
i want to delete all subdirs but one dir should remain.
for example :
test
sub1
sub2
jars
i want delete sub1 and sub2 but /jars should stay
I know how to include filenamepatterns with include / exclude but how to
deal with directorys ?
Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: [delete] dir, delete all but one subdir
Posted by James Fuller <ji...@ruminate.co.uk>.
Rebhan, Gilbert wrote:
>Hi,
>
>i want to delete all subdirs but one dir should remain.
>
>for example :
>
>test
> sub1
> sub2
> jars
>
>i want delete sub1 and sub2 but /jars should stay
>
>
use <include/> and <exclude/> nested elements to define which dirs
should stay and which should be deleted using the <delete/> Task
gl, jim Fuller
>I know how to include filenamepatterns with include / exclude but how to
>deal with directorys ?
>
>
>Gilbert
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org