aspose file tools
The moose likes Ant, Maven and Other Build Tools and the fly likes includesfile help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "includesfile help" Watch "includesfile help" New topic
Author

includesfile help

geoff conner
Greenhorn

Joined: Aug 14, 2003
Posts: 4
Hi, I'm fairly new at Ant and am having trouble using includesfile. I'm trying to copy a subset of jsp's and want to explicitly list these in a text file. There's no real pattern to the names to match. Here is a snippet of my target.
<target name="copy_jsp" depends="init">
<copy todir="${my_build}/jsp">
<fileset dir=".">
<includesfile name="./admin_jsp.txt"/>
</fileset>
</copy>
</target>
the content of admin_jsp.txt is along the lines of
.\server\admin\jsp\this.jsp
.\server\admin\jsp\that.jsp
.\server\admin\jsp\another.jsp
when executing this target, I get success, but no status msgs regarding a copy, and no copies are performed.
if I purposely change the includes file name i get an error which i would expect. So I know ant is finding my includesfile fine. I'm just not sure what the contents of admin_jsp.txt should look like, nor am I really sure if dirset dir="." is correct.
my build.xm. and the admin_jsp.txt are in the same directory, and ./server/admin/jsp are sub to that dir.
Thanks in advance.
Geoff
 
 
subject: includesfile help
 
Threads others viewed
Building Seam projects in Eclipse
What does ${user.home} means ? Where is build .properties ?
Sub Folder files copy Problem
ant tomcat dist -wrong file structure specified
ant javac task not copying directory with no java files
IntelliJ Java IDE