ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Passed in $CLASSPATH versus javac classpath
Date Thu, 03 May 2001 09:07:00 GMT
<SimonRichardson2@halifax.co.uk> wrote:

>> > It appears that whenever ant encounters a <javac> task, it uses
>> > the passed in $LOCALCLASSPATH instead of any path specified using
>> > the "classpath" attribute of the <javac> task.
>> 
>> No, it prepends the passed in CLASSPATH by default (changeable via
>> build.sysclasspath).
> 
> What does it prepend the passed in CLASSPATH with?

OK, after rereading the source:

(1) If you set the includeantruntime attribute of javac to false, it
won't use the CLASSPATH environment variable at all.

(2) If you set includeantruntime to true (the default), any classpath
you've specified via the classpath attribute/nested element or
classpathref attribute will come before the CLASSPATH environment.

To make things more complicated, there is a magic build.sysclasspath
property that affects the case (2), see
<http://jakarta.apache.org/cvsweb/index.cgi/~checkout~/jakarta-ant/docs/manual/sysclasspath.html?rev=1.1&content-type=text/html>
for details.

Stefan


Mime
View raw message