In the langtools build, the genstubs tool is passed a classpath:

        <genstubs
            srcdir="${import.jdk.src.dir}" destdir="${build.genstubs.dir}"
            includes="${import.jdk.stub.files}"
            fork="true"
classpath="${build.toolclasses.dir}:${build.bootstrap.dir}/classes:${ant.home}/lib/ant.jar"
        />

which it uses for a forked process that runs genstubs itself.

However, if fork is set to false the classpath given by:

        <taskdef name="genstubs"
                 classname="GenStubs$$Ant"
                 classpath="${build.toolclasses.dir}/"/>

which seems to work in some cases, but only if Ant has access to the
1.6 javax.tools classes.  Even if these classes are available, they
will be the ones belonging to the boot VM and not the bootstrap
classes.

Should this classpath not be set to the same as that passed to
genstubs as in 
http://hg.openjdk.java.net/icedtea/jdk7/langtools/rev/681f1f51926f
?
-- 
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8

Reply via email to