Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Ant appends files to classpath

Ant appends files to classpath

2007-07-18       - By Yura Phink

Hi,
I've got a problem where Ant appends to a classpath of javac target some
jars that I'm not interested they would appear there.
This is a javac target:

<javac srcdir="${build}/RVM.classes" destdir="${build}/steamloom"
failonerror="false" nowarn="on"
classpath="${build}/RVM.classes/jksvm.jar:${build}/RVM.classes/rvmrt.jar:$
{build}/RVM.classes/junit.jar"
includeAntRuntime="no" includeJavaRuntime="no">
    <include name="de/**/*.java"/>
    <include name="net/**/*.java"/>
</javac>

However the final classpath contains also the following libraries in the
ending of a list:
/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/rt.jar:/usr/lib/jvm/java-
1.4.2-gcj-1.4.2.0/jre/lib/jsse.jar

the first library is actually the value of sun.boot.class.path attribute,
the second one I don't know.
Note that I use jikes compiler.

Any ideas why this happens and how can I remove these files from the
classpath?

Thanks a lot.

Yura

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.