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