ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: setting properties
Date Fri, 14 Mar 2008 08:17:08 GMT
 
-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Friday, March 14, 2008 8:36 AM
To: user@ant.apache.org
Subject: AW: setting properties

/*
> I created an ant wrapper that calls the build.xml. The issue I have is
> that the build.xml call a user.properties and overrides the 
> values I set for the environment.

Properties are immutable so once set further overridings are ignored.
Properties which are passed from the command line with -D are set first.

> Each developer has everything mapped to a d: drive, i.e. ant,
weblogic,
> etc.  I want it to use my values for my build server. 
*/

i guess he asks for user specific propertyfiles.

maybe like that =

use the ant builtin properties ${user.home} or ${user.name}

${user.home}, put the user.properties in home directory
<property file="${user.home}/user.properties"/>

${user.name}, create a propertyfile for every user
<property file="${user.name}.properties"/>

this will load the user specific propertyfiles

Regards, Gilbert



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message