How do I use wildcards midway in a path (eg */lib/*)?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jeff_Turner
Posted On:   Wednesday, August 8, 2001 04:04 PM

Say I have this structure:

			
subproj1/lib/foo.jar
subproj2/lib/bar.jar

In general, */lib/*.jar
and want to copy lib/*.jar from subprojects, without iterating through each. The following doesn't work:

			





How can this be done?

Re: How do I use wildcards midway in a path (eg */lib/*)?

Posted By:   Erik_Hatcher  
Posted On:   Wednesday, August 8, 2001 04:07 PM

Use '**' like this:






Although this grabs all subdirectories (recursively), not just one level deep as your sample structure shows.

Re: How do I use wildcards midway in a path (eg */lib/*)?

Posted By:   Jeff_Turner  
Posted On:   Wednesday, August 8, 2001 04:07 PM

Here's one solution, using the regexp matcher:








For that to work, the regexp jar must be in $ANT_HOME/lib.


--Jeff
About | Sitemap | Contact