ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: v1.3 -- problems retrieving properties from <property file="S OMEF ILE">
Date Wed, 02 May 2001 17:54:13 GMT
--- "Webb, James" <james.webb@vignette.com> wrote:
> In my testing I have tried to use multiple properties from the file
> in these tasks to rule out the possibility of a parsing error
> or something like that in one of the name/value pairs.
> Anyway, none of the properties from the file are set
> when I try to use them within a task.

Can you try this simple test:

File test.properties:
weblogic.webapp.name=myapp

File test.xml:
<?xml version="1.0"?>
<project name="test" default="showprop" basedir=".">
  <target name="showprop">
    <property file="test.properties"/>
    <echo message="weblogic.webapp.name = ${weblogic.webapp.name}"/>
  </target>
</project>

[BINKY:dianeh]: ant -f test.xml
Buildfile: test.xml

showprop:
     [echo] weblogic.webapp.name = myapp

BUILD SUCCESSFUL
Total time: 0 seconds

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Mime
View raw message