ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1689291 - in /webservices/woden/trunk/java/ant-test: build.xml identify-test-case-roots.xsl
Date Sun, 05 Jul 2015 21:31:01 GMT
Author: veithen
Date: Sun Jul  5 21:31:01 2015
New Revision: 1689291

URL: http://svn.apache.org/r1689291
Log:
Fix non portable XSLT code and configure an additional report.

Modified:
    webservices/woden/trunk/java/ant-test/build.xml
    webservices/woden/trunk/java/ant-test/identify-test-case-roots.xsl

Modified: webservices/woden/trunk/java/ant-test/build.xml
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/ant-test/build.xml?rev=1689291&r1=1689290&r2=1689291&view=diff
==============================================================================
--- webservices/woden/trunk/java/ant-test/build.xml (original)
+++ webservices/woden/trunk/java/ant-test/build.xml Sun Jul  5 21:31:01 2015
@@ -181,7 +181,7 @@
    <target name="createW3CReport">
        <ant dir="${test-suite.dir}/results" target="evaluate-Woden" />
        <ant dir="${test-suite.dir}/results" target="Interchange.html" />
-       <echo>View the W3C WSDL2 Interchange report at file://${test-suite.dir}/results/Interchange.html</echo>
+       <ant dir="${test-suite.dir}/results" target="Validation.html" />
    </target>
 
 </project>

Modified: webservices/woden/trunk/java/ant-test/identify-test-case-roots.xsl
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/ant-test/identify-test-case-roots.xsl?rev=1689291&r1=1689290&r2=1689291&view=diff
==============================================================================
--- webservices/woden/trunk/java/ant-test/identify-test-case-roots.xsl (original)
+++ webservices/woden/trunk/java/ant-test/identify-test-case-roots.xsl Sun Jul  5 21:31:01
2015
@@ -47,8 +47,16 @@
 
 	<!-- $test-suite-dir-uri is the test suite directory uri, 
 		e.g. file:/D:/workspaces/WSD2/woden/downloads/w3c -->
-	<xsl:variable name="test-suite-dir-uri"
-		select="concat('file:/',translate ($test-suite-dir ,'\','/'))" />
+	<xsl:variable name="test-suite-dir-uri">
+		<xsl:choose>
+			<xsl:when test="starts-with($test-suite-dir, '/')">
+				<xsl:value-of select="concat('file:', $test-suite-dir)" />
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:value-of select="concat('file:/',translate ($test-suite-dir ,'\','/'))" />
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:variable>
 
 	<!-- $test-cases is the list of test case noded in test-suite.xml -->
 	<xsl:variable name="test-cases"



Mime
View raw message