ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romain slootmaekers <romain.slootmaek...@ubizen.com>
Subject 1.0.8 bug in the javac task.
Date Fri, 07 Jul 2000 14:16:08 GMT
Yo,
the 1.0.8 version of ant has a bug in the javac task:
the classpath="...." attribute doesn't get interpreted at all.

Now, I mail it to the mailing list since the BugZilla thingy is down,
ant (oops typo ;))
I cannot see wether it was mentioned before, fixed, or whatever....

Anyway,
to fix it, you should modify the getCompileClasspath() method (in
Javac.java)  like this:

 private String getCompileClasspath() {
        StringBuffer classpath = new StringBuffer();

        classpath.append(destDir.getAbsolutePath());
        if (compileClasspath != null) {
            addExistingToClasspath(classpath,compileClasspath);
        }

        // add the classpath

       String toAdd=getProperty("classpath");
        addExistingToClasspath(classpath,toAdd);

        // add the system classpath

addExistingToClasspath(classpath,System.getProperty("java.class.path"));

        return classpath.toString();
    }


have fun,
sloot.


--
Romain "Bass is attitude" Slootmaekers

romain.slootmaekers@ubizen.com
http://www.ubizen.com
tel +32 (0)16 31 00 15 - fax +32 (0)16 31 00 12
Ubizen - Grensstraat 1b - B-3010 Leuven - Belgium


Mime
View raw message