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!

3 comments
Comment actions Permalink

Hello Craig,

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!


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!"


0
Comment actions Permalink

Hello Dmitry,

could you provide a Copy&Paste example how to use this this task? Does it replace the standard javac task?

0
Comment actions Permalink

Hello Oliver,

could you provide a Copy&Paste example how to use this this task? Does
it replace the standard javac task?


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!"


0

Please sign in to leave a comment.