stefano 2004/01/01 14:43:29
Modified: tools/src blocks-build.xsl Log: - smaller notices in case blocks are exluded - pretty printed WARNING in case of alpha blocks - removed the "alpha" term that gave bad impression to people - added "unless.excluded..." to "block-***-prepare" so that the block is not prepared if exluded from the build (this speeds up the build rather significantly when only a few blocks are selected... as I normally do ;-) Revision Changes Path 1.44 +8 -9 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.43 retrieving revision 1.44 diff -u -r1.43 -r1.44 --- blocks-build.xsl 20 Dec 2003 10:02:39 -0000 1.43 +++ blocks-build.xsl 1 Jan 2004 22:43:29 -0000 1.44 @@ -269,9 +269,7 @@ <xsl:variable name="cocoon-block-dependencies" select="depend[starts-with(@project,'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="-----------------------------------------------"/> + <echo message="NOTICE: Block '{$block-name}' is excluded from the build."/> </target> <target name="[EMAIL PROTECTED]" unless="unless.exclude.block.{$block-name}"/> @@ -294,11 +292,12 @@ <available property="{$block-name}.has.mocks" type="dir" file="{string('${blocks}')}/{$block-name}/mocks/"/> <xsl:if test="@status='unstable'"> - <echo message="-----------------------------------------------"/> - <echo message="ATTENTION: {$block-name} is marked unstable."/> - <echo message="It should be considered alpha quality"/> - <echo message="which means that its API might change without notice."/> - <echo message="-----------------------------------------------"/> + <echo message="==================== WARNING ======================="/> + <echo message=" Block '{$block-name}' should be considered unstable."/> + <echo message="----------------------------------------------------"/> + <echo message=" This means that its API, schemas "/> + <echo message=" and other contracts might change without notice."/> + <echo message="===================================================="/> </xsl:if> <antcall target="{$block-name}-compile"/> @@ -342,7 +341,7 @@ <antcall target="{$block-name}-webinf"/> </target> - <target name="{$block-name}-prepare"> + <target name="{$block-name}-prepare" unless="unless.exclude.block.{$block-name}"> <xsl:if test="depend"> <xsl:attribute name="depends"> <xsl:value-of select="@name"/>