dcsimg
How do I include files only matching a pattern?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, July 13, 2002 12:56 PM

I'd like Ant to include only class files in its Jar task. How do I exclude all other files? Using excludes="**/*" and includes="**/*.class" doesn't work - I get all files excluded. Using a fileset with the same parameters does the reverse - all files are included.

Re: How do I include files only matching a pattern?

Posted By:   Anonymous  
Posted On:   Sunday, July 14, 2002 06:39 AM

Only use includes="**/*.class" - all other files will then be excluded automatically. You only need an additional excludes attribute, if you want to exclude specific class files in this case.
About | Sitemap | Contact