Ant Classpath Problem (not tools.jar) [message #157195] |
Sat, 15 November 2003 00:09 |
Eclipse User |
|
|
|
Originally posted by: one61803.yahoo.com
Hi all,
I'm using Eclipse 3.0M3 and I have an interesting problem regarding Ant.
I'm building a project that resources an external JAR (courseware.jar) and
I've added it to the global ant runtime classpath using the
Window->Preferences->Ant->Runtime dialog. However, when I actually build
using Ant, the external JAR is only seen by javac and not javadoc or java.
In my build.xml, I have the following:
<path id="base_classpath">
<pathelement path="${java.class.path}"/>
</path>
<path id="default_classpath">
<path refid="base_classpath"/>
<pathelement path="classes/"/>
</path>
<javac
...
classpathref="default_classpath"
...>
<javadoc
...
classpathref="default_classpath"
...>
<java
...
classpathref="default_classpath"
...>
If I explicitly add a path to the JAR file using a pathelement then
everything is fine. If I remove the JAR file from the Ant global runtime
classpath then nothing works.
Does anyone have experience with this? Is this a possible bug?
Thanks,
Robert
|
|
|
|
Powered by
FUDForum. Page generated in 0.02596 seconds