|
@@ -375,6 +375,19 @@ task attributes. This is done by placing the property name between |
|
|
<p>If there is a property called "builddir" with the value |
|
|
<p>If there is a property called "builddir" with the value |
|
|
"build", then this could be used in an attribute like this: "${builddir}/classes". |
|
|
"build", then this could be used in an attribute like this: "${builddir}/classes". |
|
|
This is resolved as "build/classes".</p> |
|
|
This is resolved as "build/classes".</p> |
|
|
|
|
|
<h3>Built in Properties</h3> |
|
|
|
|
|
<p>Ant provides access to all system properties as if they had been |
|
|
|
|
|
defined using a property task, for example ${os.name} expands to the |
|
|
|
|
|
name of the operating system.</p> |
|
|
|
|
|
<p>In addition Ant knows some built in properties:</p> |
|
|
|
|
|
<ul> |
|
|
|
|
|
<li>basedir - the absolute path of the project's basedir (as set |
|
|
|
|
|
with the basedir attribute of <project>.</li> |
|
|
|
|
|
<li>ant.file - the absolute path of the build file.</li> |
|
|
|
|
|
<li>ant.java.version - the JVM version Ant detected. Currently it |
|
|
|
|
|
can hold the values "1.1", "1.2" and |
|
|
|
|
|
"1.3".</li> |
|
|
|
|
|
</ul> |
|
|
<h3>Example</h3> |
|
|
<h3>Example</h3> |
|
|
<blockquote> |
|
|
<blockquote> |
|
|
<pre> |
|
|
<pre> |
|
|