Skip to content

Commit

Permalink
Upgrade the main endorsed libraries to the most recent versions of Xa…
Browse files Browse the repository at this point in the history
…lan and Xerces, for use by most code. Retain a separate copy of the endorsed libraries that came with metadatatool, so that the output of that tool doesn't change.
  • Loading branch information
iay committed May 11, 2009
1 parent 3df320b commit 45be9d8
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,22 @@
<!--
Local specialised directories.
-->
<property name="build.dir" value="${basedir}/build"/>
<property name="endorsed.dir" value="endorsed"/>
<property name="build.dir" value="${basedir}/build"/>
<property name="entities.dir" value="entities"/>
<property name="bin.dir" value="bin"/>
<property name="lib.dir" value="lib"/>
<property name="templates.dir" value="templates"/>
<property name="xalan.dir" value="xalan-j_2_6_0"/>
<property name="xml.dir" value="xml"/>


<!--
Endorsed libraries.
-->
<!-- endorsed libraries for metadatatool -->
<property name="endorsed.mdt.dir" value="endorsed-mdt"/>
<!-- endorsed libraries for everything except metadatatool -->
<property name="endorsed.dir" value="endorsed"/>

<!--
Additional ANT task definitions.
-->
Expand Down Expand Up @@ -396,8 +403,12 @@
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
<jvmarg value="-Djava.endorsed.dirs=endorsed"/>
</classpath>
<!--
metadatatool requires its own variant of
the endorsed libraries.
-->
<jvmarg value="-Djava.endorsed.dirs=${endorsed.mdt.dir}"/>
<!--
<jvmarg value="-Dlog4j.configuration=log4j.properties"/>
-->
Expand Down Expand Up @@ -512,11 +523,10 @@
<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"/>
<jvmarg value="-Djava.endorsed.dirs=${endorsed.dir}"/>
<arg value="${xml.dir}/@{i}"/>
<arg value="${build.dir}/check.xsl"/>
</java>
Expand Down

0 comments on commit 45be9d8

Please sign in to comment.