On Tue, Jun 16, 2009 at 11:30 AM, Shawn Castrianni<shawn.castria...@halliburton.com> wrote: > I needed something similar. Both of our requirements requires the age of a > file/directory to be determined. Therefore, the easiest approach I found was > to write my own ANT condition. By writing a condition, you can use it inside > an if statement or whatever else in ANT that supports conditions.
FWIW, Ant already has a <isfileselected> condition which can nest a selector, and the <date> and <present> (with a mapper) selectors can be used to achieve the same effect. But writing custom Ant code is fine too, and fun to boot :) --DD --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org