• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

includesfile help

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic