Friday, July 27, 2012

How to read properties file using ANT

Suppose You have to access some properties (from a file), which are already defined in my build file. To be able to access the properties We can use the build attribute of the property task.

#Release information 
#Thu Oct 14 16:25:12 CEST 2004
Ant Example Target

<target name="">    
  <!-- Read the properties from the release of the framework -->
  <property file="" prefix="build"/>
  <echo message="${}"/>
  <echo message="${build.release.version}"/>
  <echo message="${}"/>    

Buildfile: C:\build.xml
  [echo] 115
  [echo] 0.4
  [echo] framework
Total time: 3 seconds

No comments:

Post a Comment

How TOPT Works: Generating OTPs Without Internet Connection

Introduction Have you ever wondered how authentication apps like RSA Authenticator generate One-Time Passwords (OTPs) without requiring an i...