Ant has an uptodate task that you can call before you run your regular task. It will set a property if the specified file or files (via a fileset) are all up-to-date with respect to a specified source area.
Then in your regular task just add either an "if" attribute or "unless" attribute to perform that task depending on the setting of the above property. Don -----Original Message----- From: John Lindwall [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:56 AM To: 'Ant Users List' Subject: Don't invoke target X if output file is "current" I'm missing a feature from make. How can I avoid invoking a target if the "output file" is "current" (ie newer then the "input file")? In ant it seems that this kind of dependency checking is left to the task implementation. Do I have to create a custom task every time I want to implement this kind of checking? DependSet does not seem to be what I want. Thanks! -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
