ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Pelz Sherman <>
Subject Re: inline property expansion not working as advertised
Date Fri, 11 Jan 2008 15:14:19 GMT
You're right - adding the following line to build build.xml did the trick:
          <property file=""/>

  So why doesn't it work with -propertyfile? I want to be able to specify different property
files on the cmd line, and I was hoping to take advantage of this feature.

Chuck Holzwarth <> wrote:
  You have to import the property file or declare the properties in the build file.

Thank you,
Chuck Holzwarth
(804) 403-3478 (home)
(540) 335-3171 (cell)

----- Original Message ----
From: Michael Pelz Sherman 
To: Ant Users List 
Sent: Thursday, January 10, 2008 5:52:27 PM
Subject: inline property expansion not working as advertised

>From the Property task docs

In-file property expansion is very cool. Learn to use it. 


So I created a properties file with the above 
and the following build.xml file:


deploy.url is ${deploy.url}


The I ran it as follows:

$ ant -propertyfile

Here is the output:

Buildfile: build.xml

[echo] deploy.url is http://${deploy.server}:${deploy.port}/

Total time: 0 seconds
I'm using ant 7.0.

What am I doing wrong?

- mps

Looking for last minute shopping deals? 
Find them fast with Yahoo! Search.

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