ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Problems with the Javac task
Date Wed, 18 Apr 2001 07:07:22 GMT
M. A. Dunphy <madunphy@bigfoot.com> wrote:

> I'm using Ant 1.2 (though it also doesn't work in 1.3).

It will work in 1.3 with a little help from the additional
includeantruntime and includejavaruntime attributes.

>         <javac srcdir="${src}" destdir="${build.classes.src}"
>                classpath="${ordering.class.path}"/>

> From reading the docs the attribute classpath is meant to specifiy
> the classpath used in this compilation (i.e the javac -classpath
> ...).

This is only half of the story.  Ant will add the CLASSPATH it has
been invoked with to the classpath you've specified at the javac task
- it will even prepend it to the explicitly specified one.

If you don't want the CLASSPATH in the mix, use Ant 1.3 and set
includeantruntime to false.

Stefan

Mime
View raw message