Skip to content

Commit

Permalink
Refactor CHECK macro so that any file can be checked; caller is now r…
Browse files Browse the repository at this point in the history
…esponsible for providing the full location.
  • Loading branch information
iay committed Jun 25, 2009
1 parent 79d784f commit 0690cc4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@
<!-- [2] -->
<XALAN x="master_ukfederation.xsl" i="${master.file.name}"
o="${uk.master.file}" />
<CHECK i="${uk.master.file}"/>
<CHECK i="${xml.dir}/${uk.master.file}"/>
</target>

<target name="gen.uk.unsigned" depends="gen.uk.master">
Expand Down Expand Up @@ -542,6 +542,12 @@
*****************************************
-->

<!--
Check a metadata document against our local conventions.
Parameter 'i' is the file to be checked; no assumption is made
about its location so this must contain a full path.
-->
<macrodef name="CHECK">
<attribute name="i"/>
<sequential>
Expand All @@ -552,15 +558,15 @@
<pathelement path="${bin.dir}"/>
</classpath>
<jvmarg value="-Djava.endorsed.dirs=${endorsed.dir}"/>
<arg value="${xml.dir}/@{i}"/>
<arg value="@{i}"/>
<arg value="${build.dir}/check.xsl"/>
</java>
</sequential>
</macrodef>

<target name="err.test" depends="gen.uk.unsigned">
<echo>testing UK federation metadata</echo>
<CHECK i="${uk.metadata.unsigned}"/>
<CHECK i="${xml.dir}/${uk.metadata.unsigned}"/>
<echo>tested UK federation metadata</echo>
</target>

Expand Down

0 comments on commit 0690cc4

Please sign in to comment.