Question : ANT fetch values from properties file

I have the following ANT file



       
                                     docbase="POC"
                         username="dmad"
                         password="He3"
            />
       



Is is possible to fetch the values of "dicbase", "username" and "password" from a properties file rather than writing them in XML file. That way each environment can have it's own properties file and we'll not have to maintain separate XML for each environment

Thank you

Answer : ANT fetch values from properties file

I usually write a properties file by the the name of build.properties in the same directory as the ant file.
Example.

user=a
password=b

Withiin the ant file I would access them as $user or $password.
Random Solutions  
 
programming4us programming4us