sylvain 02/05/24 02:30:45
Modified: tools/src check-jars.xsl
Added: lib/local local-libs.txt
Log:
Allow local libraries for optional components. These libraries are not checked by
the build.
Revision Changes Path
1.1 xml-cocoon2/lib/local/local-libs.txt
Index: local-libs.txt
===================================================================
Put here local libraries required for optional components, such as JFor or JavaMail.
Local libraries aren't checked by the jar-checking system, so you must ensure they
do not conflict with libraries that are part of the Cocoon distribution (directories
core/ and optional/).
1.2 +10 -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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- check-jars.xsl 23 May 2002 21:09:30 -0000 1.1
+++ check-jars.xsl 24 May 2002 09:30:45 -0000 1.2
@@ -72,10 +72,19 @@
<xsl:template match="node()" mode="appears-but-not-declared">
<xsl:variable name="this" select="normalize-space(text())"/>
<xsl:if test="count($jars.xml/jars/file[normalize-space(text()) = $this]) = 0">
- <xsl:message terminate="yes">
+ <xsl:choose>
+ <xsl:when test="starts-with($this, 'local/')">
+ <xsl:message>
+ [WARN] Using local library <xsl:value-of select="$this"/> : ensure is doesn't
conflict with any other library.
+ </xsl:message>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:message terminate="yes">
File <xsl:value-of select="$this"/> appears in the lib/ directory, but is not
declared in lib/jars.xml.
Please update the lib/jars.xml file to include the <xsl:value-of select="$this"/>
file together with a description.</xsl:message>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:if>
</xsl:template>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]