Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Understanding build.xml

 
Bhaskar Mukhejee
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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 ]
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • 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
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic