mirror of https://github.com/apache/poi.git
fix update-download task
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1771066 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cfd932f8ca
commit
33ad71d77e
|
@ -2558,10 +2558,9 @@ under the License.
|
|||
<attribute name="url"/>
|
||||
<attribute name="property"/>
|
||||
<sequential>
|
||||
<local name="entityProperty"/>
|
||||
<delete file="build/loadFilesize.txt"/>
|
||||
<record name="build/loadFilesize.txt" action="start" loglevel="verbose" append="false"/>
|
||||
<http entityProperty="entityProperty" url="@{url}" method="HEAD" expected="200" printrequestheaders="false" printresponseheaders="false"/>
|
||||
<http url="@{url}" method="HEAD" expected="200" printrequestheaders="false" printresponseheaders="false"/>
|
||||
<record name="build/loadFilesize.txt" action="stop"/>
|
||||
<local name="fileSize"/>
|
||||
<loadfile property="fileSize" srcFile="build/loadFilesize.txt">
|
||||
|
@ -2577,7 +2576,9 @@ under the License.
|
|||
</macrodef>
|
||||
|
||||
<!-- TODO: currently this only saves a copy and paste snipplet to a file ...
|
||||
would be nice if it really changes status.xml and download.xml -->
|
||||
would be nice if it really changes status.xml and download.xml
|
||||
Doesn't work with Java6 - the https urls can't be accessed via loadChecksum
|
||||
-->
|
||||
<target name="update-download">
|
||||
<downloadfile src="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/missing-link/ml-ant-http-1.1.3.zip" dest="${compile.lib}/ml-ant-http-1.1.3.zip"/>
|
||||
<unzip src="${compile.lib}/ml-ant-http-1.1.3.zip" dest="${compile.lib}">
|
||||
|
|
Loading…
Reference in New Issue