cziegeler 2003/06/30 07:28:29
Modified: tools/src blocks-build.xsl Log: Build system: show message when a block is excluded Revision Changes Path 1.25 +7 -1 cocoon-2.1/tools/src/blocks-build.xsl Index: blocks-build.xsl =================================================================== RCS file: /home/cvs/cocoon-2.1/tools/src/blocks-build.xsl,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- blocks-build.xsl 23 Jun 2003 18:11:41 -0000 1.24 +++ blocks-build.xsl 30 Jun 2003 14:28:29 -0000 1.25 @@ -133,11 +133,17 @@ <xsl:template match="project"> <xsl:variable name="block-name" select="substring-after(@name,'cocoon-block-')" /> + <target name="[EMAIL PROTECTED]" if="exclude.block.{$block-name}"> + <echo message="-----------------------------------------------"/> + <echo message="ATTENTION: {$block-name} is excluded from the build."/> + <echo message="-----------------------------------------------"/> + </target> + <target name="[EMAIL PROTECTED]" unless="unless.exclude.block.{$block-name}"/> <target name="[EMAIL PROTECTED]" unless="unless.exclude.block.{$block-name}"> <xsl:if test="depend"> - <xsl:attribute name="depends"><xsl:value-of select="@name"/><xsl:for-each select="depend[contains(@project,'cocoon-block-')]"><xsl:text>,</xsl:text><xsl:value-of select="@project"/>-compile</xsl:for-each></xsl:attribute> + <xsl:attribute name="depends"><xsl:value-of select="@name"/>,<xsl:value-of select="@name"/>-excluded<xsl:for-each select="depend[contains(@project,'cocoon-block-')]"><xsl:text>,</xsl:text><xsl:value-of select="@project"/>-compile</xsl:for-each></xsl:attribute> </xsl:if> <!-- Test if this block has special build -->