workaround for hardcoded classpath in Ant build ?
I think the problem why my ant build does not work anymore is because Idea 3
uses ant 1.5 and the classpath for Ant build in Idea 3.0 is hard coded. my
ant build file is self contained and does not need any of the
com.intellij.rt.ant.* stuff. This build file works fine in Idea 2.6 (I
think 2.6 uses some com.intellij.ant.* classes, but my build file does not
have a problem with it) and now does not work at all in Idea 3.0.
anyone else here ran into this problem ?
thanks
Jerry
请先登录再写评论。
I could be wrong about this, so don't quote me :) but I think that changes to the ant classpath are now supposed to be handled with the "additional classpath" settings under the properties for the build.xml file. Open the Ant window on the right of IDEA and click the properties of that build file. Add your additional jars there and let us know if that helps or not.
-Del
Could you post your build.xml? That will make it a lot easier to spot
the problem.
Jerry Sy wrote:
--
Gordon Tyler
Software Developer, R&D
Sitraka -- Performance is Mission Critical
Yes I have had similar problems. It seems to me the the appeal of having ANT integrated into an ide can quickly sour if the ide's in general handle configuration and run options in different ways. Put another way what makes ANT really valuable is the abiltiy to pick it up and put it anywhere and get identical results, given environments are set up in an expected way. I have been finding that I can get quite different results running ANT from IDEA and running it from a command window. That should NOT be. I like the editing of the ANT in IDEA... but I don't like not knowing what is going on between IDEA and ANT when ANT is run from IDEA.
I have already spotted the problem (I think), it is using the ant and
optional.jar that is hardcoded in Idea 3.0 to be in front of the classpath.
If Idea provides the option to rearrange the Ant build classpath, then that
may solve the problem. Maybe someone knows some workaround on this problem ?
for now, I am back to running the ant build from the good old dos window.
Jerry
"Gordon Tyler" <gordon.tyler@sitraka.com> wrote in message
news:apuqa2$24b$1@is.intellij.net...
>
Idea 3
my
not
>
>
In the Ant build view, right-click on your Ant build file and choose
Properties. In the dialog that pops up, you should be able to add jars
and directorys to the Additional Classpath, or include your project
classpath with a checkbox.
Jerry Sy wrote:
>>Could you post your build.xml? That will make it a lot easier to spot
>>the problem.
>>
>>Jerry Sy wrote:
>>
>>>I think the problem why my ant build does not work anymore is because
>>
>>>uses ant 1.5 and the classpath for Ant build in Idea 3.0 is hard coded.
>>
>>>ant build file is self contained and does not need any of the
>>>com.intellij.rt.ant.* stuff. This build file works fine in Idea 2.6 (I
>>>think 2.6 uses some com.intellij.ant.* classes, but my build file does
>>
>>>have a problem with it) and now does not work at all in Idea 3.0.
>>>
>>>anyone else here ran into this problem ?
>>>
>>>thanks
>>>Jerry
>>>
>>>
>>
>>--
>>Gordon Tyler
>>Software Developer, R&D
>>Sitraka -- Performance is Mission Critical
>>
--
Gordon Tyler
Software Developer, R&D
Sitraka -- Performance is Mission Critical