• 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

Why i can't use property in includes ?

 
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good day,

I'm new in ANT, I'm about creating a build.xml for my deployment, and current task that i working on is about do zip file from respective folder.

I want to zip all the file under c:\myproject_folder\xml , but how come i can't use ${xml.dir} in includes tag ? if i remove it and place includes="xml/**", it works! , can anyone please enlighten me on this? thanks in advance!

 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Within <property>, you are using 'location'. I suspect that the location you are getting is not what you think it is, hence why it does not work. Try using 'value' instead and see it it starts working.

By the way, you can use echoeproperties to dump out the property values, that should tell you what 'xml.dir' is set to when you use 'location'.
 
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Peter, you are right on this !
 
reply
    Bookmark Topic Watch Topic
  • New Topic