ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twiddle-dee12 <harold.thurnst...@gmail.com>
Subject How do I get a property treated as a value rather than a location?
Date Mon, 24 Oct 2011 09:51:00 GMT
Hi,

I'm not a particularly strong user of ant so please bear with me. Is there a
way of getting a property in a property file treated as a value rather than
a location? For example, I have the following:

build.property:
mytest.dir="/tmp/jon"

build.xml:
.
.
.
<property file="build.property" />
.
.
.
<target name="fred">
  <mkdir dir="${mytest.dir}" />
</target>

The directory ${mytest.dir} will be created where I am running the ant
script from (in an eclipse workspace) rather than in /tmp. If I declare the
property in the build.xml then I get the behaviour I desire - but that seems
to be a bit kludgy,

Harold.



--
View this message in context: http://ant.1045680.n5.nabble.com/How-do-I-get-a-property-treated-as-a-value-rather-than-a-location-tp4931907p4931907.html
Sent from the Ant - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message