ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: javac exclude and include
Date Fri, 15 Sep 2006 14:09:34 GMT
> <target depends="init" name="javacompileGS">
>                <javac bootclasspathref="project.class.path"

Are you sure you want to use bootclasspathref? You shouldn't use it
simply to specify the project's classpath... This is intended for
cross-JDK compilation only AFAIK.

> debug="false"
> deprecation="false" srcdir="${src}" destdir="${dest}"
>                excludes="arrayhub/affymetrix/**,arrayhub/gui/**,arrayhub/mage/**"
> includes="arrayhub/*.java"
>                 nowarn="false" source="1.4" target="1.4">
>                </javac>
>        </target>

Since your include "arrayhub/*.java" is more specific than your
excludes (because it uses *, and no **, and your excludes are for
sub-dirs), the latter are useless. What is happening is that classes
in the arrayhub package depend on the packages you exclude, and SUN's
javac, which is a griddy compiler, will find them. Reset the
sourcepath to nothing (sourcepath=""), and your compile will fail ;-)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message