Ant targets before compilation

Eclipse has a nice feature where you can conditionally execute a given Ant target before a build if and only if any files under a certain directory have changed. This would be usefull in my particular case where I have a directory hierarchy that holds XML files, and an Ant target that generates Java source from those XML files. I currently have IDEA setup to execute the Ant code generation target before each build, but this wastes time in the case where none of the XML source files have changed (the code that generates Java from XML is smart enough not to regenerate code if the XML source hasn't changed, but still it has to compare the timestamps on hundreds of XML files versus their Java counterparts).

Any plans to add such a feature to IDEA, to conditionalize the execution of Ant targets before a build?

Thanks-

Danny

1 comment
Comment actions Permalink

Daniel Burkes wrote:

Eclipse has a nice feature where you can conditionally execute a given Ant target before a build if and only if any files under a certain directory have changed. This would be usefull in my particular case where I have a directory hierarchy that holds XML files, and an Ant target that generates Java source from those XML files. I currently have IDEA setup to execute the Ant code generation target before each build, but this wastes time in the case where none of the XML source files have changed (the code that generates Java from XML is smart enough not to regenerate code if the XML source hasn't changed, but still it has to compare the timestamps on hundreds of XML files versus their Java counterparts).

Any plans to add such a feature to IDEA, to conditionalize the execution of Ant targets before a build?

Thanks-

Danny

+1

0

Please sign in to leave a comment.