langtools build and genstubs task

Andrew John Hughes ahughes at
Tue Jun 1 11:36:08 UTC 2010

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

            srcdir="${import.jdk.src.dir}" destdir="${build.genstubs.dir}"

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"

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

Should this classpath not be set to the same as that passed to
genstubs as in
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (

Support Free Java!
Contribute to GNU Classpath and the OpenJDK

PGP Key: 94EFD9D8 (
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8

More information about the build-dev mailing list