--- Stefan Bodewig <[EMAIL PROTECTED]> wrote:
> M. A. Dunphy <[EMAIL PROTECTED]> 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.
Stefan, I've also been telling people they can do this, but I hadn't
actually tested it yet. Have you tried it? If you have, does it work for
you? I've just picked up 1.3 and given it a try, and it doesn't appear to
work for me.
Here's, my little build-file:
<?xml version="1.0"?>
<project name="test" default="compile" basedir=".">
<target name="compile">
<javac
srcdir="${basedir}"
destdir="${basedir}"
includeantruntime="no"
includejavaruntime="no"
includes="Test.java">
<classpath>
<pathelement location="D:/cygwin/usr/java/jdk118/classes.zip"/>
</classpath>
</javac>
</target>
</project>
I would expect the only thing in the -classpath parameter passed on the
compile command-line to be the classes.zip file, but here's what happens:
[BINKY:dianeh]: ant -Dbuild.compiler="jikes" -verbose
Ant version 1.3 compiled on March 2 2001
Buildfile: build.xml
Detected Java Version: 1.3
Detected OS: Windows NT
parsing buildfile D:\cygwin\home\dianeh\work\jikes\build.xml with URI =
file:D:/cygwin/home/dianeh/work/jikes/build.xml
Project base dir set to: D:\cygwin\home\dianeh\work\jikes
Build sequence for target `compile' is [compile]
Complete build sequence is [compile]
compile:
[javac] Test.java added as D:\cygwin\home\dianeh\work\jikes\Test.class
doesn't exist.
[javac] Compiling 1 source file to D:\cygwin\home\dianeh\work\jikes
[javac] Using jikes compiler
[javac] Compilation args: jikes -d D:\cygwin\home\dianeh\work\jikes
-classpath
D:\cygwin\usr\java\jdk13\jre\lib\ext\jce1_2_1.jar;D:\cygwin\usr\java\jdk13\jre\lib\ext\jdbc20stdext.jar;D:\cygwin\usr\java\jdk13\jre\lib\ext\jta1_2.jar;D:\cygwin\usr\java\jdk13\jre\lib\ext\local_policy.jar;D:\cygwin\usr\java\jdk13\jre\lib\ext\sunjce_provider.jar;D:\cygwin\usr\java
\jdk13\jre\lib\ext\US_export_policy.jar;D:\cygwin\home\dianeh\work\jikes;D:\cygwin\usr\java\jdk118\classes.zip;D:\cygwin\usr\java\jdk13\jre\lib\rt.jar
[javac] File to be compiled:
D:\cygwin\home\dianeh\work\jikes\Test.java
BUILD SUCCESSFUL
Total time: 0 seconds
I also tried -Dbuild.sysclasspath="ignore" (both with and without setting
the include*runtime attrs) and still got all the JDK1.3 stuff. Am I doing
something wrong?
Thanks,
Diane
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/