Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy files from sub-folders

Status
Not open for further replies.

mhuggins

Programmer
Jan 22, 2005
3
US
I have the following code in my build.xml file. My problem is that it doesn't copy the JSP or XML files from the sub-folders of src.home into the respective build.home sub-folders. How can I accomplish this without explicitly providing each folder name to copy/paste?

<!-- Copy the jsp pages to the root directory -->
<copy todir="${build.home}">
<fileset dir="${src.home}">
<include name="*.jsp"/>
</fileset>
</copy>
<!-- Copy the xml files to the root directory -->
<copy todir="${build.home}">
<fileset dir="${src.home}">
<include name="*.xml"/>
</fileset>
</copy>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top