Skip to content

Commit

Permalink
First cut at an additional task to verify the metadata files at the m…
Browse files Browse the repository at this point in the history
…aster distribution location post-upload.
  • Loading branch information
iay committed Dec 1, 2008
1 parent 8f7d05e commit 55d0f97
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<property name="remote.loc.sdss" value="${remote.user}@${remote.host}:${remote.dir.sdss}"/>
<property name="remote.dir.uk" value="metadata"/>
<property name="remote.loc.uk" value="${remote.user}@${remote.host}:${remote.dir.uk}"/>
<property name="remote.url" value="http://master.metadata.ukfederation.org.uk"/>

<!--
Local specialised directories.
Expand Down Expand Up @@ -391,6 +392,32 @@
<echo>Verification completed.</echo>
</target>

<!--
Verify a metadata file held on the master distribution site.
-->
<macrodef name="VFY.remote">
<attribute name="i"/>
<sequential>
<echo>Verifying @{i}...</echo>
<delete file="${xml.dir}/temp.xml" quiet="true" verbose="false"/>
<get src="${remote.url}/@{i}" dest="${xml.dir}/temp.xml"/>
<MDT i="temp.xml" o="${null.device}" keystore="${keystore.uk.vfy.loc}" alias="${keystore.uk.vfy.alias}"/>
<delete file="${xml.dir}/temp.xml" quiet="true" verbose="false"/>
</sequential>
</macrodef>

<!--
Verify a metadata file held on the master distribution site.
-->
<target name="verify.master.metadata">
<echo>Verifying metadata held at ${remote.url}</echo>
<VFY.remote i="ukfederation-metadata.xml"/>
<VFY.remote i="ukfederation-sites-12.xml"/>
<VFY.remote i="ukfederation-trust-12.xml"/>
<VFY.remote i="ukfederation-wayf.xml"/>
<echo>Verification completed.</echo>
</target>

<!--
Statistics generation
Expand Down

0 comments on commit 55d0f97

Please sign in to comment.