I've not used ANT, so no clues how it is used in ANT
 

But, I've used a external property file in my project as build.properties(just change the extension). I'm including the property file in the build target file

 

<include buildfile="E:\Config\PropertyFile\Build.properties" failonerror="false" />  

 

after declaring the <project>, before defining any targets.

 

Hope this helps.

 

 

Thanks

Shelly

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sachin Shriram Gedam
Sent: Monday, July 25, 2005 10:57 AM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] How to maintain property files?

Hello Friends,

I am maintaining our property files in the format of “.build” files itself. Like:

<?xml version="1.0"?>
<project name="mesDeveloperCommonConstatns">
    <!-- mention other properties used by all developers -->
    <property name="build.src.location" value="..\..\..\config\mesDil\src"/>   
    <property name="build.lib.location" value="..\..\..\tools\ext"/>
  </project> 

But our client wants this property file, like ANT property file with extension as ".property" and structure (may be he want to use same file in ANT also), like this

build.src.location=="..\..\..\config\mesDil\src"
build.lib.location=="..\..\..\tools\ext"

Can we use our property file as ANT property file, if so then how?

Waiting for your valuable guidance.



Reply via email to