You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Diane Holt <ho...@yahoo.com> on 2001/05/02 19:54:13 UTC

RE: v1.3 -- problems retrieving properties from

--- "Webb, James" <ja...@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/