Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@SOMETHING@ in ant file, how does it work ?

 
Mikhael Jenings
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please look at the below snippet from an ant file,

......
# foo @BUILD_DATE@
fooVersion=@BUILD_NUMBER@
#
# License Keys
#
licenseKey=@LICENSE_KEY@
licenseSecure=@LICENSE_SECURE@


# Spring substitution properties
barService.portName=BarService
barService.serviceName=BarServiceService
barService.wsdlDocumentUrl=@BAR_SERVICE_WSDL_URL@
......

This is from a project using Spring(changed a bit though).

I wanted to know how does the @BUILD_NUMBER@ and the other @...@ work ?
What are these called ?
What do they mean ?
Where are they getting the values from ?



Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These are called token filters. Check the filter task to see how they are used. In your case, they are probably using an external properties file holding the tokens' value.
 
Mikhael Jenings
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am extremely sorry, I made a mistake.

The snippet is not from an ant file, it is from a properties file.
Now how does this work ?
(I don't see any other file containing the values for the tokens.)


Thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christophe's answer applies to a properties file being processed by Ant.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic