I have a build process in Java where I need to use the Ant exec
task to launch an external program. That external program will then create some sources based on an abstract specification, i.e. a kind of code generation.
How can I get the exec
task to execute only if the input to the code generation is newer than the output? I.e. when the input has been modified after the output was last created?