Re: Delete N directories that match a regexp

2009-03-27 Thread Michael Delaney
u could bypass the includesfile and simply --oh, except in this case you'd use pathsep="," on your pathconvert. Whaddya think? -Matt --- On Thu, 3/26/09, Michael Delaney wrote: From: Michael Delaney Subject: Delete N directories that match a regexp To: "Ant Users List

Delete N directories that match a regexp

2009-03-26 Thread Michael Delaney
I'm look for a way, with using ant "out of the box", to find a list of directories and sort them via date then deleted the oldest three directories. Thus far I've been able to sort the directories, take the last three but I can't seem to figure out how to delete the actual directory; see atta

Detecting directory versus symlink

2009-03-20 Thread Michael Delaney
In ant 1.7.0, is there a way to test if a resource is a directory or if it's a symlink? I have a directory /app/product/foo which may, or may not be a symlink. If it's a symlink, I just want to remove the symlink but if it's a directory, I have another set of instructions I need to follow. Any