I would like to generate some Java files in the build process, just before the compilation part. The best way to do so is to use a SourceGeneratingCompiler, but I can't obtain what I want.
My generated source files have to be put inside the src folder, then be compiled. IIUC the "standard" way is to put generated files directly inside the output directory, but that's not what I want.
In fact, I cannot find a way to compute the relative path from my generated files to the compilation output directory (as required by org.intellij.plugins.kasper.compiler.KasperXmlItem#getPath).
In my case the output root directory (a random directory created by IDEA?) is in C:\ whereas my source folder is in D:\, and VfsUtil#getPath seems to be unable to compute the relative directory between two partitions...
Also, VfsUtil#getPath seems to return the wrong relative path if both "src" and "dst" parameters are directories (it misses one depth level).
First question: can I use SourceGeneratingCompiler to generate Java files in a source root, then compile them?
Second question: what has changed regarding SourceGeneratingCompiler with the recent external build? (http://youtrack.jetbrains.com/issue/IDEA-94145)
Thanks a lot.