Magne Rasmussen wrote:
Hi.
I have an plugin which processes the class files generated by compile,
generates a new java file based on the class files, and then needs to
compile this generated java file.
The question is: Can I get hold of, and run, the compile mojo from
within my plugin? If so, how do I do that?
No, you can't.
You should split this up into 2 projects - one that produces the first class
files,
and a second project that generates code from the class files of the first
project.
There might be a workaround though, but it's not recommended: process the
classes
in the process-classes phase, generating the source files.
Then configure the compiler plugin to also run in the process-classes phase to
compile
the newly generated sources. It might not run in the correct order, though.
I really recommend splitting up into 2 projects.
-- kenney
Magne Rasmussen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]