I know CompileTask is supposed to be used to run things before and after the actual compilation phase, but we'd like to reuse the Ceylon analyzer, which is kind of slow to be initialized, to compile Ceylon code directly from a CompileTask. This analyzer is already used to show errors in the editor, to resolve declarations etc. so it's very important for us to be able to reuse it to compile code in the same process as the IDE.
Do you think this could cause problems, as the new compilation API is entirely designed to be run in a separate process?
Bonus question: in mixed Ceylon/Java projects, the Ceylon compiler is also able to compile Java code, so if we decide to run it in a CompileTask, is there a way to tell IntelliJ that the Java files we just compiled don't need to be compiled again in the external process?
Thanks for your help.