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?
You can see the way I do it for the intellij plug-in here: https://github.com/antlr/intellij-plugin-v4/blob/master/build.gradle
intellij uses gradle now for plugin dev.