You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cr...@apache.org on 2002/12/22 10:14:37 UTC
cvs commit: xml-cocoon2/tools/src check-jars.xsl
crossley 2002/12/22 01:14:36
Modified: tools/src check-jars.xsl
Log:
Ensure that jar filename has version number or datestamp.
Revision Changes Path
1.8 +8 -1 xml-cocoon2/tools/src/check-jars.xsl
Index: check-jars.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon2/tools/src/check-jars.xsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- check-jars.xsl 19 Nov 2002 04:20:07 -0000 1.7
+++ check-jars.xsl 22 Dec 2002 09:14:36 -0000 1.8
@@ -36,7 +36,14 @@
<xsl:variable name="this" select="normalize-space(text())"/>
<xsl:if test="count($jars.xml/jars/file/lib[normalize-space(text()) = $this]) > 1">
<xsl:message terminate="yes">
- Duplicate entry for file <xsl:value-of select="$this"/>.
+ Duplicate entry for file <xsl:value-of select="$this"/>
+ </xsl:message>
+ </xsl:if>
+ <!-- ensure a decent filename -->
+ <xsl:if test="not(contains(translate($this, '0123456789', '9999999999'), '9'))">
+ <xsl:message terminate="no">
+ [WARN] Poor filename for file <xsl:value-of select="$this"/>
+ Please add version number or datestamp.
</xsl:message>
</xsl:if>
</xsl:for-each>
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org