ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Remijan" <Michael.Remi...@solocup.com>
Subject RE: Use properties file and System variables.
Date Thu, 01 May 2003 16:35:12 GMT
Actually, I figured it out. Put this in the build.xml

	<property environment="env" />
    	<property file="ant.properties"/>

Then put this in the ant.properties file

	foo=${env.FOO}

I've been at a loss with this all morning then inpiration hit the moment I clicked the email
send button.

Mike


-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com]
Sent: Thursday, May 01, 2003 11:25 AM
To: Ant Users List
Subject: Re: Use properties file and System variables.


It probably won't be as clean as you might hope but I
think you could do this with ant-contrib's
<propertycopy> task.

-Matt


Mime
View raw message