File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Multiple excludes for ant copy task Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Multiple excludes for ant copy task" Watch "Multiple excludes for ant copy task" New topic
Author

Multiple excludes for ant copy task

Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 512
Looking to do multiple excludes when copying files. One will be a directory and the other will be a file name. Specifically the directory is pdf and the file is testhome.jsp

I can exclude the specific file but not sure how to do the directory and the file.

TIA


By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Don't know if you can use directory names with excludes in filesets. You might want to look at if the other way round and explicitly include the directories you want.
[ June 23, 2004: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
As far as I remember, you can have multiple nested filesets in your copy task.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
 
 
subject: Multiple excludes for ant copy task
 
Threads others viewed
problem in copying directory
Why Maven?
problem while build
problem with excludes (ANT)
Not able to Exclude Multiple JAR files while doing a build
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com