2009/9/14 Scott Stark :
> Joe wrote:
>> That's not correct: ant properties in the file are expanded inline.
>> See http://ant.apache.org/manual/CoreTasks/property.html for details
>> (I don't know about ${file.separator}, though)
>
> I see that in the documentation; however it's not working for me.
Joe wrote:
> That's not correct: ant properties in the file are expanded inline.
> See http://ant.apache.org/manual/CoreTasks/property.html for details
> (I don't know about ${file.separator}, though)
I see that in the documentation; however it's not working for me.
My properties file:
script_dir
On Fri, Sep 11, 2009 at 20:35, Scott Stark wrote:
>
> Hi, this is probably a dumb question but I couldn't find the answer in the
> online doc.
>
> I want to import a set of properties from an XML file when I run an Ant
> build from the command line. I can do that with the -propertyfile param if
>
2009/9/11 Scott Stark :
>> Any particular reason you're not using a plain old properties file?
>
> Also I've noticed you can't "inherit" properties in a properties file. For
> example, this doesn't work:
>
> projectRoot=C:\\working
> documentSource=${projectRoot}\\documents
>
> And you can't even u
> Any particular reason you're not using a plain old properties file?
Also I've noticed you can't "inherit" properties in a properties file. For
example, this doesn't work:
projectRoot=C:\\working
documentSource=${projectRoot}\\documents
And you can't even use ${file.separator}...
Scott
"Thomas Boyles" wrote:
> Any particular reason you're not using a plain old properties file?
Well I wanted to make it editable by an XML editor, as well as put comments
and such in there to make it more readable. Just wondering if there's a way
to import an XML file at the command line, since it
Any particular reason you're not using a plain old properties file?
-Original Message-
From: Scott Stark [mailto:sst...@us.ibm.com]
Sent: Friday, September 11, 2009 11:36 AM
To: Ant Users List
Subject: Newbie question: importing properties from XML file via command
line
Hi, th
Hi, this is probably a dumb question but I couldn't find the answer in the
online doc.
I want to import a set of properties from an XML file when I run an Ant
build from the command line. I can do that with the -propertyfile param if
the file has name=value pairs in it. Any way to do this with an
Hi,
It occurred to me that the way Ant reads property files in imported
build scripts is not very modular by default. As the manual explains, to
read a property file relative to the current script, you must do the
following:
But on the other hand, the import task itself uses import path