ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Inskeep <dave.insk...@bea.com>
Subject javac task and classpath attribute
Date Tue, 24 Oct 2000 15:54:26 GMT
Does anyone else have problems with using the classpath attribute, 
classpath nested element, or classpathref attribute with the javac task? No 
matter what I try, javac seems to ignore the classpath and use what ant ran 
with. In desperation I even just tried:

<javac srcdir="${src.dir}" destdir="${build.dir}" classpath="foo"/>

hoping to see my classpath as foo. However, this is what I get with "ant 
-verbose":

[javac] Compilation args: jikes -d C:\Projects\beast\classes -classpath 
"C:\Program 
Files\JavaSoft\JRE\1.2\lib\ext\iiimp.jar;C:\Projects\beast\classes;C:\java\ant\lib\ant.jar;C:\java\ant\lib\jaxp.jar;C:\java\ant\lib\parser.jar;C:\java\jdk1.2.2\lib\tools.jar;C:\Program

Files\JavaSoft\JRE\1.2\lib\rt.jar;C:\Projects\beast\src"

It appears to be just the classpath that the ant batch file uses plus my 
srcdir and destdir. Am I missing something obvious? I'm using version ant 1.2.

Thanks,
Dave


Mime
View raw message