Using SourceInstrumentingCompiler without modifying original source code?

Is there a way to use SourceInstrumentingCompiler without modifying the original source code? Essentially I want to take the original source files, produce some new temporary source files, and then compile those, instead of the original files.

Does the IDEA plugin API allow for this? Is SourceInstrumentingCompiler the way to go? If so, how do I do this?

2 comments

Try "JavaSourceTransformingCompiler": it does exactly what you need. Note that all modifications your compiler will do will be
hidden from the user (i.g. user won't see the modifications in the editor)

--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"


"Keith Lea" <keith@cs.oswego.edu> wrote in message news:16467805.1099525748559.JavaMail.itn@is.intellij.net...

Is there a way to use SourceInstrumentingCompiler without modifying the original source code? Essentially I want to take the
original source files, produce some new temporary source files, and then compile those, instead of the original files.

>

Does the IDEA plugin API allow for this? Is SourceInstrumentingCompiler the way to go? If so, how do I do this?



0

Thanks, this looks like just what I wanted.

0

Please sign in to leave a comment.