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