Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Ant, Maven and Other Build Tools and the fly likes How to copy over the JSPs? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How to copy over the JSPs?" Watch "How to copy over the JSPs?" New topic
Author

How to copy over the JSPs?

Garrett Smith
Ranch Hand

Joined: Jun 27, 2002
Posts: 401
This should be an easy question.

ANT has an exclude but not an include. I want to exclude everything except **/*.jsp.

(the above example won't work, but it is what I am trying to do).
[ May 05, 2007: Message edited by: Garrett Smith ]

comp.lang.javascript FAQ: http://jibbering.com/faq/
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Originally posted by Garrett Smith:
ANT has an exclude but not an include.

Ant has both an exclude and an include for filesets. The fileset documentation page gives examples of both.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Garrett Smith
Ranch Hand

Joined: Jun 27, 2002
Posts: 401
I don't know why I missed that before. It looks like there's an attribute and an element for includes.
 
 
subject: How to copy over the JSPs?
 
Similar Threads
WAR file creation using Ant in Java Program
exclude multiple filesets(from a ant script)
Ant - copy dir, exclude subdir
Exclude more than one class file when creating a jar
Ant: How to conditionally include something in a custom task?