• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

about a certain Ant property

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All...
Ant users...
What does this property do exactly? (from build.xml)
<property environment="env"/>
and also whats the difference between
<classpath> and <path> and when to use them?
 
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<property environment="env" /> is for accessing the environment variables of your system. See the bottom of the Property Task for full details.
For information on <path> and <classpath>, please see the Using Ant documentation.
If you have any questions after reading these resources, we'll be happy to answer.
Craig
 
An Kum
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply, I really appreciate it...and it cleared most of my doubts.
On <classpath> and <path> ...
When you have to replicate (say use <classpath> over and over again, in your XML build file...you can make use of <path id="somevalue"> to refer to the same classpath once in your file, and later call it using <classpath refid="somevale"> as many times you want.
Check this link out which would make it more clearer
http://jakarta.apache.org/ant/manual/using.html#references
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JavaAntUser,
Javaranch has a naming policy which is strictly enforced. Please read this policy and change your display name if you wish to continue posting here. Thanks.
reply
    Bookmark Topic Watch Topic
  • New Topic