ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject WG: Deleting multiple directories
Date Fri, 20 Jun 2003 07:09:32 GMT
Oh, sorry: you can use <script> of course ...
The actual (3 days old) version of <script>s doco contains an example where
you can
start from*checkout*/ant/docs/manual/OptionalTasks/s

Oh - there was a problem with file.delete(). Workaround was create a
<delete> task and use that.


-----Ursprüngliche Nachricht-----
Von: Materne, Jan (RZF) 
Gesendet am: Freitag, 20. Juni 2003 09:03
An: 'Ant Users List'
Betreff: AW: Deleting multiple directories

The only way I know is using AntContrib´s <foreach>.
Not fine - but works.

I had the same problem and so it´s on my todo list: adding a nested <path>
to <delete> (like
<foreach> does). But I hadn´t a look into the sources so far ...


> -----Ursprüngliche Nachricht-----
> Von: Neil Walsh [mailto:marvin@Redbrick.DCU.IE]
> Gesendet am: Mittwoch, 18. Juni 2003 17:48
> An:
> Betreff: Deleting multiple directories
> Hi,
> I have a list of directories that I want to delete. I figured 
> the easiest way
> to do this would be to use the dirset element and nest that 
> within the delete
> task. However I get an error saying that delete doesn't 
> support the nested
> dirset element. I've since tried various methods with delete 
> but with no joy.
> These are specific directory names ie I'm not using pattern 
> sets to specify
> them. I know I could go <delete dir="name">, but I was hoping 
> to automate the
> task somewhat so that it could do it with a list of comma seperated
> directories read in off a file.
> Any ideas?
> Thanks,
> Neil
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message