External Ant Build
Our company has used IntelliJ to create a couple of Applets that utliize your forms for their GUI layout. The IDE creates an XML file whose extension is .form for each GUI for tha twe create.
I was wondering if it was possible to generate actual Java code from these .form files on the fly outside of the IDE, i.e. with ANT?
Thanks in advance!
请先登录再写评论。
Hello Craig,
It's not possible to generate the source code on the fly, but there is an
Ant task which lets you perform bytecode instrumentation for the forms. The
task is javac2.jar in the IntelliJ IDEA distribution.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Dmitry,
could you provide a Copy&Paste example how to use this this task? Does it replace the standard javac task?
Hello Oliver,
Yes, you simply add a taskdef for the task (the class name is com.intellij.uiDesigner.ant.Javac2)
and replace usages of the javac task with javac2.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"