A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Engineering
»
Ant, Maven and Other Build Tools
Author
**/* patten in Ant?
Judy Collins
Greenhorn
Joined: Oct 07, 2004
Posts: 20
posted
Feb 07, 2005 18:50:00
0
Hi there,
Can anybody tell me what does **/*
pattern
mean in Apache
Ant
?
I am just not sure what does it mean. Any help is greatly appreciated
1 <copy todir="${class.root}" > 2 <fileset dir="${source.root}" > 3 <include name="**/*.properties"/> 4 <include name="**/*.hbm.xml"/> 5 </fileset> 6 </copy> 7 </target>
Thanks for your help
Steven Bell
Ranch Hand
Joined: Dec 29, 2004
Posts: 1071
posted
Feb 07, 2005 19:11:00
0
In your case it means include any file with the pattern *.properties in this directory or any subdirectory. Same with the hbm.xml.
Judy Collins
Greenhorn
Joined: Oct 07, 2004
Posts: 20
posted
Feb 09, 2005 06:14:00
0
Thanks a lot for your help.
Here is what I found
The pattern '**/*.hbm.xml' means
any file ending in .hbm.xml, within the specified directory, or any subdirectory, however deeply nested.
I agree. Here's the link:
http://aspose.com/file-tools
subject: **/* patten in Ant?
Similar Threads
How to copy over the JSPs?
ant tomcat dist -wrong file structure specified
Modification of JSP file using ANT
Ant Path problem
modifying source from within ant (to auto-version code)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter