Browse Source

Correct a typo and styling

master
Gintas Grigelionis 7 years ago
parent
commit
b7b4a8bd63
1 changed files with 14 additions and 16 deletions
  1. +14
    -16
      manual/Tasks/property.html

+ 14
- 16
manual/Tasks/property.html View File

@@ -49,11 +49,10 @@ they are most definitely not variables.</p>
<li>By setting the <var>environment</var> attribute with a prefix to use. Properties will be
defined for every environment variable by prefixing the supplied name and a period to the name
of the variable.</li>
<li>By setting the <i>runtime</i> attribute with a prefix to use.
Properties <code>prefix.availableProcessors</code>,
<code>prefix.freeMemory</code>, <code>prefix.totalMemory</code>
and <code>prefix.maxMemory</code> will be defined with values that
correspond to the corresponding methods of
<li>By setting the <var>runtime</var> attribute with a prefix to use.
Properties <code>prefix.availableProcessors</code>, <code>prefix.freeMemory</code>, <code>prefix.totalMemory</code>
and <code>prefix.maxMemory</code> will be defined with values that correspond to the
corresponding methods of
the <a href="https://docs.oracle.com/javase/10/docs/api/java/lang/Runtime.html">Runtime</a>
class.</li>
</ul>
@@ -128,18 +127,17 @@ to <a href="http://java.sun.com/dtd/properties.dtd" target="_top">Sun DTD</a>, w
</tr>
<tr>
<td>runtime</td>
<td>the prefix to use when retrieving Runtime properties. Thus if
you specify <var>runtime</var>=<q>myrt</q> you will be able to
access runtime values corresponding to methods in
<td>the prefix to use when retrieving Runtime properties. Thus if you
specify <var>runtime</var>=<q>myrt</q> you will be able to access runtime values corresponding
to methods in
the <a href="https://docs.oracle.com/javase/10/docs/api/java/lang/Runtime.html">Runtime</a>
class via property names <code>myrt.availableProcessors</code>,
<code>myrt.maxMemory</code>, <code>myrt.totalMemory</code> or
<code>myrt.freeMemory</code>. Note that if you supply a property name with a final
<code>.</code> it will not be doubled; i.e. runtime=<code>myrt.</code> will still
allow access of prpperties through <code>myrt.maxMemory</code>.<br>
Note also that the property values are snapshots taken at the point in time
when the <code>property</code> has been executed.
<em>Since Ant 1.10.4</em>
class via property
names <code>myrt.availableProcessors</code>, <code>myrt.maxMemory</code>, <code>myrt.totalMemory</code>
or <code>myrt.freeMemory</code>. Note that if you supply a property name with a final <q>.</q>
it will not be doubled; i.e. <var>runtime</var>=<q>myrt.</q> will still allow access of
properties through <code>myrt.maxMemory</code>.<br> Note also that the property values are
snapshots taken at the point in time when the <code>property</code> has been executed. <em>Since
Ant 1.10.4</em>
</td>
</tr>
<tr>


Loading…
Cancel
Save