You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by mo...@apache.org on 2001/04/02 19:52:24 UTC
cvs commit: jakarta-alexandria/proposal/gump/stylesheet bash.xsl build.xsl
morrijr 01/04/02 10:52:24
Modified: proposal/gump/stylesheet bash.xsl build.xsl
Log:
Improved path resolution under cygwin
Revision Changes Path
1.21 +6 -1 jakarta-alexandria/proposal/gump/stylesheet/bash.xsl
Index: bash.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/bash.xsl,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- bash.xsl 2001/03/22 14:21:40 1.20
+++ bash.xsl 2001/04/02 17:52:21 1.21
@@ -341,7 +341,12 @@
<xsl:text> -D</xsl:text>
<xsl:value-of select="@name"/>
<xsl:text>=</xsl:text>
- <xsl:value-of select="@value"/>
+ <xsl:choose>
+ <xsl:when test="@type = 'path' and $cygwin = 1">
+ <xsl:text>'`cygpath --path --windows "</xsl:text><xsl:value-of select="@value"/><xsl:text>"`'</xsl:text>
+ </xsl:when>
+ <xsl:otherwise><xsl:value-of select="@value"/></xsl:otherwise>
+ </xsl:choose>
</xsl:for-each>
<xsl:choose>
1.6 +4 -4 jakarta-alexandria/proposal/gump/stylesheet/build.xsl
Index: build.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/build.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- build.xsl 2001/03/17 21:15:01 1.5
+++ build.xsl 2001/04/02 17:52:22 1.6
@@ -232,7 +232,7 @@
<xsl:when test="@reference='home'">
<xsl:variable name="project" select="@project"/>
<xsl:for-each select="//project[@name=$project]">
- <property name="{$name}" value="{home}"/>
+ <property name="{$name}" value="{home}" type="path"/>
</xsl:for-each>
</xsl:when>
@@ -240,7 +240,7 @@
<xsl:variable name="project" select="@project"/>
<xsl:variable name="id" select="@id"/>
<xsl:for-each select="//project[@name=$project]">
- <property name="{$name}" value="{jar[@id=$id]/@name}"/>
+ <property name="{$name}" value="{jar[@id=$id]/@name}" type="path"/>
</xsl:for-each>
</xsl:when>
@@ -248,12 +248,12 @@
<xsl:variable name="project" select="@project"/>
<xsl:variable name="id" select="@id"/>
<xsl:for-each select="//project[@name=$project]">
- <property name="{$name}" value="{home}/{jar[@id=$id]/@name}"/>
+ <property name="{$name}" value="{home}/{jar[@id=$id]/@name}" type="path"/>
</xsl:for-each>
</xsl:when>
<xsl:when test="@path">
- <property name="{$name}" value="{$basedir}/{ancestor::project/@srcdir}/{@path}"/>
+ <property name="{$name}" value="{$basedir}/{ancestor::project/@srcdir}/{@path}" type="path"/>
</xsl:when>
<xsl:otherwise>
---------------------------------------------------------------------
To unsubscribe, e-mail: alexandria-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: alexandria-dev-help@jakarta.apache.org