Hi all,
I'm new to
Ant and I can't get exclude to work in javac. I think I'm doing something wrong, but can't figure out what. I'm hoping someone can point me to the right direction.
This is what my directory structure looks like:
.
build.xml
+src
+my
+stuff
|
|-+server
| *.java
|
|-+printer
| *.java
|
|-+ver-1
| *.java
| *
|
|-+ver-2
| *.java
| *
|
|-+ver-3
*.java
*
I want to compile everything except the stufff in ver-* directories, so I put this in my build.xml file:
<target name="compile">
<javac srcdir="${src}" destdir="${build}" excludes="${src}/**/ver*/"/>
</target>
but it doesn't work, all the
java files in all three ver-* directories are still included.
Then I try this,
<target name="compile">
<javac srcdir="${src}" destdir="${build}">
<exclude name="${src}/**/ver*/*.java"/>
</javac>
</target>
I still get the same result. Could anyone tell me what I did wrong?
Thank you very much.