ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  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 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.

1 to 1 of 1
  1. More properties tips
    2005-04-15 06:08:34  joachimm [View]

1 to 1 of 1