ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject <delete> mix of files and dirs ?
Date Fri, 26 Aug 2005 07:18:20 GMT


Problem =

i'm parsing a logfile for stuff that should be deleted. 
Logfile may contain files _and_ directories.
All parsed filenames and directories
are put into a property, property looks like that :


     [echo] /lib/spatch2.jar,
     [echo] /lib/shotpatch.jar,
     [echo] /lib/spatchcorba.jar,
     [echo] /lib/safir.jar,
     [echo] /lib/shodpatch.jar,
     [echo] /lib/vbjorb.jar,
     [echo] /lib/vbjorb521p11.jar,
     [echo] /conf/,

Later i want to delete all those with a <for> loop
on remote servers.

When looking into the ant manual for delete task,
it has an attribute for file _or_  dir.

Question =

How to achieve something like :

<for list="${delfiles}" param="delfile">
      <delete file OR dir="@{delfile}" />

with a mix of files and directories in my
property ??

Any ideas ?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message