Browse Source

Corrected example for usetimestamp-attribute of get-task (by me)

and
Corrected examples for chmod-task
Submitted by: <Jesse.Glick@netbeans.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268521 13f79535-47bb-0310-9956-ffa450edef68
master
Nico Seessle 24 years ago
parent
commit
3cd1384760
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      docs/index.html

+ 4
- 5
docs/index.html View File

@@ -1705,8 +1705,7 @@ directly. More FileSets can be specified using nested
</table> </table>
<h3>Examples</h3> <h3>Examples</h3>
<blockquote> <blockquote>
<p><code>&lt;chmod file=&quot;${dist}/start.sh&quot; perm=&quot;ugo+rx&quot;
/&gt;</code></p>
<p><code>&lt;chmod file=&quot;${dist}/start.sh&quot; perm=&quot;ugo+rx&quot;/&gt;</code></p>
</blockquote> </blockquote>
<p>makes the &quot;start.sh&quot; file readable and executable for anyone on a <p>makes the &quot;start.sh&quot; file readable and executable for anyone on a
UNIX system.</p> UNIX system.</p>
@@ -1719,8 +1718,8 @@ UNIX system.</p>
readable and executable for anyone on a UNIX system.</p> readable and executable for anyone on a UNIX system.</p>
<blockquote> <blockquote>
<pre> <pre>
&lt;chmod perm=&quot;g+w&quot;/&gt;
&lt;fileset dir=&quot;shared/sources1&quot; &gt;
&lt;chmod perm=&quot;g+w&quot;&gt;
&lt;fileset dir=&quot;shared/sources1&quot;&gt;
&lt;exclude name=&quot;**/trial/**&quot;/&gt; &lt;exclude name=&quot;**/trial/**&quot;/&gt;
&lt;/fileset&gt; &lt;/fileset&gt;
&lt;fileset refid=&quot;other.shared.sources&quot;/&gt; &lt;fileset refid=&quot;other.shared.sources&quot;/&gt;
@@ -2860,7 +2859,7 @@ NB: This timestamp facility only works on downloads using the HTTP protocol.
<pre> &lt;get src=&quot;http://jakarta.apache.org/builds/tomcat/nightly/ant.zip&quot; <pre> &lt;get src=&quot;http://jakarta.apache.org/builds/tomcat/nightly/ant.zip&quot;
dest=&quot;optional.jar&quot; dest=&quot;optional.jar&quot;
verbose=&quot;true&quot; verbose=&quot;true&quot;
usetimestamps=&quot;true&quot;/&gt;</pre>
usetimestamp=&quot;true&quot;/&gt;</pre>
<p> <p>
Gets the nightly ant build from the tomcat distribution, if the local copy Gets the nightly ant build from the tomcat distribution, if the local copy
is missing or out of date. Uses the verbose option is missing or out of date. Uses the verbose option


Loading…
Cancel
Save