ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: Appending to the environment's classpath?
Date Mon, 13 Aug 2001 18:12:04 GMT
You can nest a classpath to <javac>.

Something like this:


    <pathelement path="${build.dir}"/>

    <pathelement path="${java.class.path}" />


Does that help??


----- Original Message ----- 
From: "Denis Haskin" <>
To: <>
Sent: Monday, August 13, 2001 10:54 AM
Subject: Appending to the environment's classpath?

> Apologies if this is a FAQ, but I searched the mailing list archives 
> with no luck.
> Am I correct in understanding that it's impossible to append to the 
> classpath for a javac task if the classpath is set at the OS environment 
> level?
> I'm using 1.3 on Win2k (and Solaris, but I haven't tested it there) and 
> it appears that if I don't specify any classpath in the build file, it 
> takes the value of the CLASSPATH environment variable (as expected). 
>  But I'd like to be able to add to the classpath within the build file, 
> but for the life of me I can't figure out how to do it.  Evverything 
> I've tried seems to be ignored, and the classpath stays the same 
> (checking this by using -verbose or -debug).
> Thanks,
> dwh

View raw message