Modify files before build

Quite often it is impossible to correctly configure Idea for a project that is using ant to build, because ant filter tokens are used to modify files during the build process.

Is it possible to write a plugin to do this and how hard will this be?
On-the-fly modifications need to be made
- on source files before compilation
- on files configured in the resource patterns when they are copied to the output folder
- on deployment descriptors before they are copied to the exploded dir or zipped into a jar/war/ear

If all three types of modifications are possible, please provide some hints to get me started...

1 comment
Comment actions Permalink

com.intellij.openapi.compiler.CompilerManager.addBeforeTask might be what you need. Also check out the other classes in the com.intellij.openapi.compiler package.



Please sign in to leave a comment.