John Murph wrote:
If you use the uiDesigner in IntelliJ IDEA, you must use a special
compiler. This compiler is freely distributed by IntelliJ and is a
drop in replacement for <javac> called <javac2>. I had this working
with the following code:
configurations
{
javac2
}
dependencies
{
javac2 'com.intellij:javac2:6.0.5'
}
def javac2Config = configurations.javac2
subprojects
{
compile.doFirst { ant.taskdef(name:'javac',
classname:'com.intellij.ant.Javac2', classpath:javac2Config.asPath) }
}
However, that recently stopped working. I thought it was due to the
source sets changes, so I tried to change the last line to
"compileJava.doFirst..." but that did not help. How can I make this
work now?
It should still work (with the rename to compileJava). You could just do
subprojects {
ant.taskdef(name:'javac', classname:'com.intellij.ant.Javac2',
classpath:javac2Config.asPath)
}
as all tasks in a project share the same AntBuilder instance.
I tried it out and it seems to work ok. How do you know it isn't
working? Do you get an error message?
Or is there a better way?
I don't think so. It's an interesting use case for when (if?) we provide
native javac intergration.
Adam
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email