Skip to content

Commit

Permalink
Fix for issue #13. Using a different pathsep.
Browse files Browse the repository at this point in the history
  • Loading branch information
martindholmes committed Dec 13, 2023
1 parent c008b25 commit 4817b85
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Tests/xspec-runner.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<include file="../Lib/xspec/build.xml"/>
<target name="xspec-runner">
<!-- For each of our XSpec files. -->
<xsl:for-each select="tokenize($files)">
<xsl:for-each select="tokenize($files, '&#x241d;')">
<!-- call the xspec target in the build file. -->
<antcall target="xspec.xspec" inheritall="false">
<!-- Pass the location of the XSpec file we want to run. -->
Expand Down
15 changes: 12 additions & 3 deletions buildTest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,20 @@
files containing our tests. [Note: this is not working as of 2022-10-25,
possibly because of the switch to Saxon 11.]
</description>
<pathconvert refid="xspec-files" property="xspec.files" pathsep=" "/>
<xslt style="${basedir}/Tests/xspec-runner.xslt" in="build.xml" out="${basedir}/Tests/xspec-runner.xml">
<pathconvert refid="xspec-files" property="xspec.files" pathsep="&#x241d;"/>
<!--<xslt style="${basedir}/Tests/xspec-runner.xslt" in="build.xml" out="${basedir}/Tests/xspec-runner.xml">
<classpath location="${saxon}"/>
<param name="files" expression="${xspec.files}"/>
</xslt>
</xslt>-->

<java fork="true" classname="net.sf.saxon.Transform" classpath="${saxon}" failonerror="true">
<jvmarg value="-Xmx1024m"/>
<arg value="-s:build.xml"/>
<arg value="-xsl:${basedir}/Tests/xspec-runner.xslt"/>
<arg value="-o:${basedir}/Tests/xspec-runner.xml"/>
<arg value="files=${xspec.files}"/>
<arg value="--suppressXsltNamespaceCheck:on"/>
</java>
<!--<subant antfile="xspec-runner.xml" buildpath="Tests" target="xspec-runner"/>-->
<exec executable="${antPath}" dir="Tests">
<arg value="-f"/>
Expand Down

0 comments on commit 4817b85

Please sign in to comment.