Browse Source

FIX: on windows the css is not included (wrong path was calculated)

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@598323 13f79535-47bb-0310-9956-ffa450edef68
master
Jan Materne 17 years ago
parent
commit
9d0c47e4d4
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      src/etc/checkstyle/checkstyle-frames.xsl

+ 8
- 3
src/etc/checkstyle/checkstyle-frames.xsl View File

@@ -224,13 +224,18 @@
-->
<xsl:template name="path">
<xsl:param name="path"/>
<xsl:if test="contains($path,'/')">

<!-- Convert a windows path '\' to a unix path '/' for further processing. -->
<xsl:variable name="path2" select="translate($path,'\','/')"/>

<xsl:if test="contains($path2,'/')">
<xsl:text>../</xsl:text>
<xsl:call-template name="path">
<xsl:with-param name="path"><xsl:value-of select="substring-after($path,'/')"/></xsl:with-param>
<xsl:with-param name="path"><xsl:value-of select="substring-after($path2,'/')"/></xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="not(contains($path,'/')) and not($path = '')">
<xsl:if test="not(contains($path2,'/')) and not($path2 = '')">
<xsl:text>../</xsl:text>
</xsl:if>
</xsl:template>


Loading…
Cancel
Save