Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

ant javac exclude not working for directories

Thread view: 
dtown22@gmail.com - 22 Mar 2007 21:57 GMT
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!
dtown22@gmail.com - 22 Mar 2007 22:34 GMT
On Mar 22, 1:57 pm, dtow...@gmail.com wrote:
> I can't seem to figure out what I am doing wrong. The following is my
> javac task:
[quoted text clipped - 18 lines]
>
> thanks!

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.