And besides that.... absolute paths have no place anywhere in build files! :))
Erik ----- Original Message ----- From: "Zhendi Su" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 2:15 PM Subject: Re: exclude attribute in javac task > 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" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > 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:[EMAIL PROTECTED]> > > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > ---------------------------------------------------------------------------- ---- > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>