ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhendi Su <rachael...@oracle.com>
Subject Re: exclude attribute in javac task
Date Mon, 04 Feb 2002 19:15:48 GMT
Thanks a lot, Erik!

Zhendi

Erik Hatcher wrote:

> Yup.... because implicitly <javac> is using a fileset, which, by definition,
> is rooted at a single directory and all files for includes/excludes are
> specified relative to that directory (srcdir).
>
>     Erik
>
> ----- Original Message -----
> From: "Zhendi Su" <rachael.su@oracle.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Monday, February 04, 2002 1:52 PM
> Subject: exclude attribute in javac task
>
> > Hi,
> >
> > I noticed one weird thing about the exclude attribute in javac task:
> >
> > I have file called TestBase.java at /home/rsu/prototype/test_exclude.
> > In my javac task if I specify the absolute path, the exclude attribute
> > doesn't work.  That is, if my javac looks like this:
> >
> > <javac srcdir="/home/rsu/prototype"  destdir="/home/rsu/test"
> > target="1.1" bootclasspath="/local/java/jdk1.1.8/lib/classes.zip"
> > extdirs=" " excludes="/home/rsu/prototype/test_exclude/**" >
> >
> > After ant was finished I looked under /home/rsu/test and TestBase.class
> > was updated every time.
> >
> > But if I specify the relative path to the srcdir, the exclude attribute
> > works.  That is, if my javac task looks like this:
> >
> > <javac srcdir="/home/rsu/prototype"  destdir="/home/rsu/test"
> > target="1.1" bootclasspath="/local/java/jdk1.1.8/lib/classes.zip"
> > extdirs=" " excludes="test_exclude/**" >
> >
> > Then I looked under /home/rsu/test and TestBase.class was not updated.
> >
> > Does anyone know why?  Thanks a lot!
> >
> > Zhendi Su
> >
>
> ----------------------------------------------------------------------------
> ----
>
> > --
> > To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message