Form compiler in custom build?
We are testing out a command line build of our plugin using gradle. So far things are looking okay, EXCEPT none of our dialogs that use ".form" files to setup things work. It appears we are missing the post-processing of these forms to inject the $$$setupUI$$$ methods.
I'm been looking around the idea-community code and there's an AsmCodeGenerator.java file that maybe is doing this? Is there somewhere in the ant build for idea-community that triggers this form processing that I can perhaps try to replicate for our plugin build?
Please sign in to leave a comment.
If you're using Gradle, the easiest option is to change the UI Designer to generate source code instead of instrumenting bytecode.You can change this option in the UI Designer settings.
Assuming we want to maybe try to avoid that, is there somewhere I can look in the build.xml and related scripts that will point me in the right
direction for bytecode manipulation?
The bytecode instrumentation is performed by the <javac2> Ant task.
I was also looking for a way to do that in an Ant build, and Dmitry's hint was helpful, I imported the taskdef and it seems to process the forms correctly:
Here's an example that does the same, but from Gradle: https://github.com/gshakhn/idea-fitnesse/blob/master/build.gradle#L134.