May I respectfully suggest a attribute alternative to the
selector's current and attributes?
--Wayne
Wayne Cannon wrote:
I would like to do the equivalent of a "find -newer reference_file ...
| zip ... ", i.e., archiving all files newer than a reference_file. I
would like to archive only
After that sales pitch, I'll definitely investigate the Ant-Contrib
"outofdate". Thanks.
I'm also investigating whether a selector with a
element can do what I'm looking for.
--Wayne
Dominique Devienne wrote:
My bad, I so seldom used uptodate after outofdate came out that I
forgot how mu
My bad, I so seldom used uptodate after outofdate came out that I
forgot how much inferior it is to outofdate ;-)
Sounds like Matt's solution's the way to go for pure Ant 1.7+, while
I'd probably use Ant-Contrib's myself, 'cause I'm used to
it, and can nest the tasks to perform directly in the
I don't understand how to use for this purpose.
My reading of is that it will set a property if a file is
up-to-date with respect to another file (based on a merge mapper for my
case). I currently use for determining whether certain
operations need to be performed (setting a boolean proper
Just for discussion's sake, this can also be solved
with some of the resource stuff introduced in Ant 1.7:
... you should now have a resource collection at refid
"newer" consisting only of those members of
candidate_files that are newer than reference_file.
FWIW,
Matt
--- D
You can use to select the newer files.
Or Ant-Contrib's , which I find more convenient, since
avoids having multiple targets, but it adds a dependency. --DD
On 7/19/07, Wayne Cannon <[EMAIL PROTECTED]> wrote:
I would like to do the equivalent of a "find -newer reference_file ... |
zip ... ", i