ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Held <>
Subject Deleting directories using restrict
Date Wed, 12 Sep 2007 12:22:06 GMT

Using Ant 1.7.0, I am trying to delete some directories, based on a 
comparison of their names:

        <delete verbose="true">
              <dirset dir="${dist_dir}" includes="*"  />
              <rsel:compare when="le" against="all">
                  <resource name="${delete-id}" />
                <rcmp:name />
              <rsel:type type="dir" />

This works well if and only if the directories in question are empty. If 
they are not empty, the delete does not work. What am I doing wrong 
here? Incidentally, the directory names are in the form of timestamps, 
comparing using "le" should delete all that are older than a specified 
timestamp. As there are other directories I have to keep, simply 
deleting based on time does not work.

Any help is greatly appreciated.

Best regards,


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

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

View raw message