Article:
 |
|
Top 15 Ant Best Practices
|
| Subject: |
|
More properties tips |
| Date: |
|
2003-12-18 07:54:39 |
| From: |
|
jimothy
|
|
|
|
I use a system of two properties files:
my.build.properties
build.properties
my.build.properties takes precedence over build.properties, allowing team members to override properties with machine specific values. This is where you'd put your absolute paths, such as the location of Tomcat/WebLogic/etc.
Towards the top of the Ant script, include:
<property file="my.build.properties"/>
<property file="build.properties"/>
<property file="${user.home}/build.properties"/>
Also be sure to include my.build.properties in your .cvsignore file so team members don't accidentally check in the file and overwrite your own properties.
|
Showing messages 1 through 1 of 1.
-
More properties tips
2005-04-15 06:08:34
joachimm
[Reply | View]
developer can have their own project-specific
version checked into CVS.
And shouldn't ${user.home}/build.properties
be before build.properties?