Browse Source

use a single get task in macro

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@818144 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 15 years ago
parent
commit
3495f4b72c
1 changed files with 11 additions and 3 deletions
  1. +11
    -3
      docs/manual/CoreTasks/get.html

+ 11
- 3
docs/manual/CoreTasks/get.html View File

@@ -176,9 +176,17 @@ the <a href="input.html">input task</a> to query for a password.</p>
&lt;macrodef name="get-and-checksum">
&lt;attribute name="url"/>
&lt;attribute name="dest"/>
&lt;sequential>
&lt;get src="@{url}" dest="@{dest}"/>
&lt;get src="@{url}.sha1" dest="@{dest}.sha"/>
&lt;sequential&gt;
&lt;local name="destdir"/&gt;
&lt;dirname property="destdir" file="@{dest}"/&gt;
&lt;get dest="${destdir}"&gt;
&lt;url url="@{url}"/&gt;
&lt;url url="@{url}.sha1"/&gt;
&lt;firstmatchmapper&gt;
&lt;globmapper from="@{url}.sha1" to="@{dest}.sha"/&gt;
&lt;globmapper from="@{url}" to="@{dest}"/&gt;
&lt;/firstmatchmapper&gt;
&lt;/get&gt;
&lt;local name="checksum.matches"/>
&lt;local name="checksum.matches.fail"/>
&lt;checksum file="@{dest}" algorithm="sha" fileext=".sha"


Loading…
Cancel
Save