crossley 2002/12/22 01:14:40
Modified: tools/src Tag: cocoon_2_0_3_branch check-jars.xsl
Log:
Ensure that jar filename has version number or datestamp.
Revision Changes Path
No revision
No revision
1.5.2.3 +9 -2 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.5.2.2
retrieving revision 1.5.2.3
diff -u -r1.5.2.2 -r1.5.2.3
--- check-jars.xsl 18 Sep 2002 16:30:52 -0000 1.5.2.2
+++ check-jars.xsl 22 Dec 2002 09:14:39 -0000 1.5.2.3
@@ -16,7 +16,7 @@
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output indent="yes" method="xml" doctype-public="-//APACHE//DTD Documentation
V1.0//EN" doctype-system="document-v10.dtd" />
+ <xsl:output indent="yes" method="xml" doctype-public="-//APACHE//DTD Documentation
V1.0//EN" doctype-system="../dtd/document-v10.dtd" />
<xsl:strip-space elements="*" />
@@ -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
|