Hi,

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

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

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,

Andreas


**********************************************************************
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to