Skip to content

Commit

Permalink
automatically download the right version of KeyExplorer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximin Luo committed Aug 10, 2009
1 parent a14e59f commit e91e258
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.xml
Expand Up @@ -48,6 +48,7 @@
<mkdir dir="lib/"/>
<mkdir dir="${tmp}"/>
<ant target="SnakeYAML-get"/>
<ant target="KeyExplorer-get"/>
<delete dir="${tmp}"/>
</target>

Expand Down Expand Up @@ -75,6 +76,25 @@
</unzip>
</target>

<property name="KeyExplorer.mirror" value="http://cloud.github.com/downloads/freenet/plugin-Library-staging/KeyExplorer-dacfafecbc82aecdeffa56bef4a047a7f6c7f08d.jar" />
<property name="KeyExplorer.md5" value="be5f1ec860fe71c55d029ebe0350f129" />
<property name="KeyExplorer.sha" value="12bf9bc1b4d436424e43c6b509b87690ac887de1" />
<available property="KeyExplorer.exist" classname="plugins.KeyExplorer.KeyExplorerUtils" classpathref="lib.path"/>
<target name="KeyExplorer-get" unless="KeyExplorer.exist">
<get verbose="true" src="${KeyExplorer.mirror}" dest="${tmp}/KeyExplorer-dacfafecbc82aecdeffa56bef4a047a7f6c7f08d.jar" />
<checksum file="${tmp}/KeyExplorer-dacfafecbc82aecdeffa56bef4a047a7f6c7f08d.jar" algorithm="MD5" property="${KeyExplorer.md5}" verifyProperty="KeyExplorerMD5ok" />
<checksum file="${tmp}/KeyExplorer-dacfafecbc82aecdeffa56bef4a047a7f6c7f08d.jar" algorithm="SHA" property="${KeyExplorer.sha}" verifyProperty="KeyExplorerSHAok" />
<fail message="KeyExplorer.jar checksum mismatch">
<condition>
<or>
<equals arg1="${KeyExplorerMD5ok}" arg2="false" />
<equals arg1="${KeyExplorerSHAok}" arg2="false" />
</or>
</condition>
</fail>
<move file="${tmp}/KeyExplorer-dacfafecbc82aecdeffa56bef4a047a7f6c7f08d.jar" todir="lib/" />
</target>

<!-- ================================================== -->
<target name="compile" depends="mkdir,build-dep,setver" >
<tstamp/>
Expand Down
Empty file added lib/.placeholder
Empty file.

0 comments on commit e91e258

Please sign in to comment.