UI designer ant-task

Hi,

I just found that there's already an Ant task included in uiDesigner.jar.
The task works perfectly, but it needs idea.jar to be in its classpath. It's
no big deal at the moment, but eventually the task has to be executed on
a dedicated build machine that should be able to compile independently
of IDEA.

Will this task be independent of idea.jar by the 4.0 release and what
about the plans to make it (and the runtime) open source?

Thanks,
Sascha


8 comments
Comment actions Permalink

BTW,
To make avaible compilation from ANT just Set "instrument for .java code"
option in Project Settings->UI Designer.
Then you may simple compile java files by standard ANT javac task.

Thanks!

--
Alexey Efimov, Software Engineer
Sputnik Labs,
http://www.spklabs.com
"Sascha Weinreuter" <sascha.weinreuter@NOSPAM-cit.de> wrote in message
news:blufa2$8gt$1@is.intellij.net...

Hi,

>

I just found that there's already an Ant task included in uiDesigner.jar.
The task works perfectly, but it needs idea.jar to be in its classpath.

It's

no big deal at the moment, but eventually the task has to be executed on
a dedicated build machine that should be able to compile independently
of IDEA.

>

Will this task be independent of idea.jar by the 4.0 release and what
about the plans to make it (and the runtime) open source?

>

Thanks,
Sascha

>
>


0
Comment actions Permalink

Hello Sascha,

We'll include (most likely in the next build) a separate jar that will be
sufficient to run Ant task 'javac2'.

--
Best regards,
Anton Katilin
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

"Sascha Weinreuter" <sascha.weinreuter@NOSPAM-cit.de> wrote in message
news:blufa2$8gt$1@is.intellij.net...

Hi,

>

I just found that there's already an Ant task included in uiDesigner.jar.
The task works perfectly, but it needs idea.jar to be in its classpath.

It's

no big deal at the moment, but eventually the task has to be executed on
a dedicated build machine that should be able to compile independently
of IDEA.

>

Will this task be independent of idea.jar by the 4.0 release and what
about the plans to make it (and the runtime) open source?

>

Thanks,
Sascha

>
>


0
Comment actions Permalink

Cool, good to know. Thank you.

Sascha

Anton Katilin (JetBrains) wrote:

Hello Sascha,

>

We'll include (most likely in the next build) a separate jar that will be
sufficient to run Ant task 'javac2'.



0
Comment actions Permalink


Alexey Efimov wrote:

BTW,
To make avaible compilation from ANT just Set "instrument for .java code"
option in Project Settings->UI Designer.
Then you may simple compile java files by standard ANT javac task.


Yeah I know, but I somehow started to like the bytecode instrumentation because
I don't have the generated code besides my regular code. I don't need this code,
so why bother with it. Less clutter and less code for IDEA to parse.

Also, the source code generation has some problems that cause an assertion on nearly
every compile/save with a modified form file. Quite annoying.
(http://www.intellij.net/tracker/idea/viewSCR?publicId=16984)

Hmm, BTW: I just tried the source code generation again and it takes awfully long for a
not too complex form. Anyone else noticed this?


Sascha


0
Comment actions Permalink

On Tue, 07 Oct 2003 16:40:45 +0200, Sascha Weinreuter wrote:

Yeah I know, but I somehow started to like the bytecode instrumentation
because I don't have the generated code besides my regular code. I don't
need this code, so why bother with it. Less clutter and less code for IDEA
to parse.


And less patches going into the CVS tree ;)

0
Comment actions Permalink

Hello Sasha,

Can you give me an sample of ANT script.
I want to try include it to plugin project template.

http://www.intellij.org/twiki/bin/view/Main/ProjectPluginTemplate

Thanks!

--
Alexey Efimov, Software Engineer
Sputnik Labs,
http://www.spklabs.com
"Sascha Weinreuter" <sascha.weinreuter@NOSPAM-cit.de> wrote in message
news:bluj91$i8n$2@is.intellij.net...
>

Alexey Efimov wrote:

BTW,
To make avaible compilation from ANT just Set "instrument for .java

code"

option in Project Settings->UI Designer.
Then you may simple compile java files by standard ANT javac task.

>

Yeah I know, but I somehow started to like the bytecode instrumentation

because

I don't have the generated code besides my regular code. I don't need this

code,

so why bother with it. Less clutter and less code for IDEA to parse.

>

Also, the source code generation has some problems that cause an assertion

on nearly

every compile/save with a modified form file. Quite annoying.
(http://www.intellij.net/tracker/idea/viewSCR?publicId=16984)

>

Hmm, BTW: I just tried the source code generation again and it takes

awfully long for a

not too complex form. Anyone else noticed this?

>
>

Sascha

>
>


0
Comment actions Permalink

Here it is (only the interesting part):

Just use javac2 as a replacement for javac-task: ]]>

Hope this helps,
Sascha


Alexey Efimov wrote:

Hello Sasha,

>

Can you give me an sample of ANT script.
I want to try include it to plugin project template.

>

http://www.intellij.org/twiki/bin/view/Main/ProjectPluginTemplate

>

Thanks!

>

--
Alexey Efimov, Software Engineer
Sputnik Labs,



0
Comment actions Permalink

Thanks a lot!

This is replacement for javac or it only compile .form files?

"Sascha Weinreuter" <sascha.weinreuter@NOSPAM-cit.de> wrote in message
news:bm35ro$d9h$1@is.intellij.net...

Here it is (only the interesting part):

>

<path id="compile.classpath">
<fileset dir="${idea.home}/lib">
<include name="openapi.jar"/>
<include name="idea.jar"/>
<include name="jdom.jar"/>
<include name="forms_rt.jar"/>
</fileset>
</path>

>

<path id="uidesigner.classpath">
<path refid="compile.classpath"/>
<fileset dir="${idea.home}/lib">
<include name="bcel.jar"/>
</fileset>
<fileset dir="${idea.home}/plugins/uiDesigner/lib">
<include name="uiDesigner.jar"/>
</fileset>
</path>

>

<taskdef name="javac2"
classname="com.intellij.uiDesigner.ant.Javac2"
classpathref="uidesigner.classpath"/>

>

Just use javac2 as a replacement for javac-task:

>

<target name="...">
<javac2 srcdir="..." destdir="..."

classpathref="compile.classpath" />

</target>

>

Hope this helps,
Sascha

>
>

Alexey Efimov wrote:

Hello Sasha,

>

Can you give me an sample of ANT script.
I want to try include it to plugin project template.

>

http://www.intellij.org/twiki/bin/view/Main/ProjectPluginTemplate

>

Thanks!

>

--
Alexey Efimov, Software Engineer
Sputnik Labs,

>
>


0

Please sign in to leave a comment.