ant javac exclude not working for directories

D

dtown22

I can't seem to figure out what I am doing wrong. The following is my
javac task:

<javac srcdir="${root}"
destdir="${classes}"
debug="on"
debuglevel="lines,source"
source="1.5"
includes="org/domain/dir1/, org/aemf/dir2/"
excludes="org/domain/dir1/app2/, org/domain/dir1/app3/"
classpath= "${compile.comm}; ${compile.db4.3}; $
{compile.swing}; ${compile.xml}" >
</javac>


I basically want to exclude everything within the dir1 & dir2
(subdirectories included), and exclude the directories dir1/app2 &
dir2/app3 (and all of their subdirectories). The include works as
expected, but the directories are not excluded.

Any ideas?

thanks!
 
D

dtown22

I can't seem to figure out what I am doing wrong. The following is my
javac task:

<javac srcdir="${root}"
destdir="${classes}"
debug="on"
debuglevel="lines,source"
source="1.5"
includes="org/domain/dir1/, org/aemf/dir2/"
excludes="org/domain/dir1/app2/, org/domain/dir1/app3/"
classpath= "${compile.comm}; ${compile.db4.3}; $
{compile.swing}; ${compile.xml}" >
</javac>

I basically want to exclude everything within the dir1 & dir2
(subdirectories included), and exclude the directories dir1/app2 &
dir2/app3 (and all of their subdirectories). The include works as
expected, but the directories are not excluded.

Any ideas?

thanks!

figured it out. I had a dependency on one of the packages I was trying
to exclude.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top