ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lenhof,Danny" <>
Subject RE: setting properties
Date Fri, 14 Mar 2008 13:40:47 GMT
Thanks for the replies. This is what I did to get it to work. This is
not the best way I am sure, but it works in a pinch. 




                 inheritAll="false" >

                 <property name="env" value="${env}"/>




-----Original Message-----
From: Rebhan, Gilbert [] 
Sent: Friday, March 14, 2008 4:17 AM
To: Ant Users List
Subject: RE: setting properties



-----Original Message-----

From: [] 

Sent: Friday, March 14, 2008 8:36 AM


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 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,


> 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.home}, put the in home directory

<property file="${user.home}/"/>


${}, create a propertyfile for every user

<property file="${}.properties"/>


this will load the user specific propertyfiles


Regards, Gilbert





To unsubscribe, e-mail:

For additional commands, e-mail:


This e-mail message, including any attachments, is for the sole use of the person to whom
it has been sent, and may contain information that is confidential or legally protected. If
you are not the intended recipient or have received this message in error, you are not authorized
to copy, distribute, or otherwise use this message or its attachments. Please notify the sender
immediately by return e-mail and permanently delete this message and any attachments.  Gartner
makes no warranty that this e-mail is error or virus free. 

  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message