@@ -154,22 +154,28 @@ SYSTEM).
<td align="center" valign="top">No</td>
<td align="center" valign="top">No</td>
</tr>
</tr>
</table>
</table>
<h3>Parameters specified as nested elements</h3>
<h3>Parameters specified as nested elements</h3>
<h4>classpath</h4>
<h4>classpath</h4>
<p><code>Property</code>'s <i>classpath</i> attribute is a <a
<p><code>Property</code>'s <i>classpath</i> attribute is a <a
href="../using.html#path">PATH like structure</a> and can also be set via a nested
href="../using.html#path">PATH like structure</a> and can also be set via a nested
<i>classpath</i> element.</p>
<i>classpath</i> element.</p>
<h3>Examples</h3>
<h3>Examples</h3>
<pre> <property name="foo.dist" value="dist"/></pre>
<pre> <property name="foo.dist" value="dist"/></pre>
<p>sets the property <code>foo.dist</code> to the value "dist".</p>
<p>sets the property <code>foo.dist</code> to the value "dist".</p>
<pre> <property file="foo.properties"/></pre>
<pre> <property file="foo.properties"/></pre>
<p>reads a set of properties from a file called "foo.properties".</p>
<p>reads a set of properties from a file called "foo.properties".</p>
<pre> <property url="http://www.mysite.com/bla/props/foo.properties"/></pre>
<pre> <property url="http://www.mysite.com/bla/props/foo.properties"/></pre>
<p>reads a set of properties from the address "http://www.mysite.com/bla/props/foo.properties".</p>
<p>reads a set of properties from the address "http://www.mysite.com/bla/props/foo.properties".</p>
<pre> <property resource="foo.properties"/></pre>
<pre> <property resource="foo.properties"/></pre>
<p>reads a set of properties from a resource called "foo.properties".</p>
<p>reads a set of properties from a resource called "foo.properties".</p>
<p>Note that you can reference a global properties file for all of your Ant
<p>Note that you can reference a global properties file for all of your Ant
builds using the following:</p>
builds using the following:</p>
<pre> <property file="${user.home}/.ant-global.properties"/></pre>
<pre> <property file="${user.home}/.ant-global.properties"/></pre>
<p>since the "user.home" property is defined by the Java virtual machine
<p>since the "user.home" property is defined by the Java virtual machine
to be your home directory. Where the "user.home" property resolves to in
to be your home directory. Where the "user.home" property resolves to in
@@ -189,6 +195,18 @@ Note that this only works on <em>select</em> operating systems.
Two of the values are shown being echoed.
Two of the values are shown being echoed.
</p>
</p>
<pre>
<property environment="env"/>
<property file="${user.name}.properties"/>
<property file="${env.STAGE}.properties"/>
<property file="build.properties"/>
</pre>
<p>This buildfile uses the properties defined in <tt>build.properties</tt>. Regarding to the
environment variable <tt>STAGE</tt> some or all values could be overwritten, e.g. having
<tt>STAGE=test</tt> and a <tt>test.properties</tt> you have special values for that (like another
name for the test server). Finally all these values could be overwritten by personal settings with
a file per user.</p>
<h3>Property Files</h3>
<h3>Property Files</h3>
As stated, this task will load in a properties file stored in the file
As stated, this task will load in a properties file stored in the file