• 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

Understanding build.xml

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I am new to the j2ee and code builing. In a typical build.xml file(required by ANT utility) I can not understand in the properties tag what is the necessity of value attribute?
and
why we keep the value (of property tag )under somethink like this "${}" i.e value = "${build.dir}" (for example).
I have gone through several sites but the concept is not clear to me. please help me. Awaiting for an aspiring reponse from your side. Thanks in advance.
[ September 16, 2008: Message edited by: Bear Bibeault ]
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI Bhakar,
I am moving your question to our ANT, Maven and other build tools forum as this question has nothing to do with webservices forum.
Regards
Balaji
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess I am not sure I understand the question. So if this does not answer it, let us know.

The "${..}" syntax is used to access the value of a property within the build. Consider this property setting:



The property 'basedir' is a built-in property whose value is the directory containing the build.xml file. For example, its value might be "/home/peter/myproject". Ant set the property 'src.dir' to the value "/home/peter/myproject/src".

Put it another way, the above property statement is similar to the following statement in a scripting language, or even in Java (if such languages allowed dots in their variable names):

 
Bhaskar Mukhejee
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Peter,

You exactly gave the answer that I wanted. Now the doubt is clear to me. Thank you very much.

Regards,
bhaskar
reply
    Bookmark Topic Watch Topic
  • New Topic