Skip to content

Commit

Permalink
Integrate new metadata checking application, replacing Xalan for this…
Browse files Browse the repository at this point in the history
… purpose.

Implement check of the UK master file each time that is generated for whatever reason.
  • Loading branch information
iay committed May 9, 2009
1 parent 4b56dfe commit f016a5c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@
<!-- [2] -->
<XALAN x="master_ukfederation.xsl" i="${master.file.name}"
o="${uk.master.file}" />
<CHECK i="${uk.master.file}"/>
</target>

<target name="gen.uk.unsigned" depends="gen.uk.master">
Expand All @@ -344,7 +345,7 @@
o="${uk.metadata.export.unsigned}" />
</target>

<target name="gen.uk.1.2">
<target name="gen.uk.1.2" depends="gen.uk.unsigned">
<echo>Generating unsigned UK V1.2 metadata.</echo>
<!-- [21] -->
<XALAN x="v13_to_v12_sites.xsl" i="${uk.metadata.unsigned}"
Expand All @@ -354,7 +355,7 @@
o="ukfederation-trust-12-unsigned.xml"/>
</target>

<target name="gen.uk.wayf">
<target name="gen.uk.wayf" depends="gen.uk.unsigned">
<echo>Generating unsigned UK WAYF metadata.</echo>
<!-- [25] -->
<XALAN x="master_to_wayf.xsl" i="${uk.metadata.unsigned}"
Expand Down Expand Up @@ -508,7 +509,17 @@
<macrodef name="CHECK">
<attribute name="i"/>
<sequential>
<XALAN i="@{i}" o="temp.tmp" x="check.xsl"/>
<java classname="uk.org.ukfederation.apps.mdcheck.MetadataCheck"
fork="true" failonerror="true" maxmemory="384m">
<classpath>
<pathelement location="${xalan.dir}/bin/xalan.jar"/>
<pathelement location="${lib.dir}/joda-time-1.6.jar"/>
<pathelement path="${bin.dir}"/>
</classpath>
<jvmarg value="-Djava.endorsed.dirs=endorsed"/>
<arg value="${xml.dir}/@{i}"/>
<arg value="${build.dir}/check.xsl"/>
</java>
</sequential>
</macrodef>

Expand Down

0 comments on commit f016a5c

Please sign in to comment.