I'm trying to do an Ant build where one step involves running ANTLR whenever one or more *.g4 or *.stg files change. If any of these changes, then I need to run the ANTLR task if any of the *.java or *.tokens files in my output directory are older than any of the *.g4 or *.stg files.
I'm looking at the ant task, but not seeing how to set up a mapper to express this dependency.
Any suggestions?