You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by do...@apache.org on 2002/07/14 01:38:42 UTC
cvs commit: jakarta-alexandria/proposal/gump/stylesheet bash.xsl build.xsl
donaldp 2002/07/13 16:38:42
Modified: proposal/gump/stylesheet bash.xsl build.xsl
Log:
Add in the notion of a "scorecard" that tracks results of all the runs in a simple flat file. Ideal for diffing to compare differences between two ant runs.
Revision Changes Path
1.77 +20 -1 jakarta-alexandria/proposal/gump/stylesheet/bash.xsl
Index: bash.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/bash.xsl,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- bash.xsl 23 Apr 2002 17:45:32 -0000 1.76
+++ bash.xsl 13 Jul 2002 23:38:42 -0000 1.77
@@ -52,9 +52,14 @@
<!-- build -->
<!-- =================================================================== -->
+ <xsl:template match="scorecard">
+ </xsl:template>
+
<xsl:template match="build">
<xsl:text>#!/bin/bash </xsl:text>
-
+ <xsl:text>export SCORECARD_FILE="</xsl:text><xsl:value-of select="scorecard/@file"/><xsl:text>" </xsl:text>
+ <xsl:text>export SCORECARD=">>$SCORECARD_FILE" </xsl:text>
+ <xsl:text>rm -f $SCORECARD_FILE </xsl:text>
<xsl:if test="$cygwin=1">
<xsl:text>export CP=`cygpath --path --unix "$CLASSPATH"` </xsl:text>
</xsl:if>
@@ -79,6 +84,11 @@
</xsl:template>
<xsl:template match="build//project">
+
+ <xsl:text>export PROJECT=</xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text> </xsl:text>
+
<xsl:choose>
<xsl:when test="@name='clean'">
<xsl:text>echo Restoring build directories </xsl:text>
@@ -370,6 +380,12 @@
<xsl:value-of select="$project"/>
<xsl:text>\</a\>\</p\> $OUT" </xsl:text>
+ <xsl:text> eval echo "$PROJECT Missing prereq </xsl:text>
+ <xsl:value-of select="translate(@path,'\','/')"/>
+ <xsl:text> from </xsl:text>
+ <xsl:value-of select="$project"/>
+ <xsl:text> " $SCORECARD </xsl:text>
+
<xsl:text>fi </xsl:text>
</xsl:for-each>
</xsl:template>
@@ -459,7 +475,10 @@
<xsl:text> </dev/null $OUT 2>&1" </xsl:text>
<xsl:text>test $? -ge 1 && </xsl:text>
<xsl:text>export STATUS="FAILED" </xsl:text>
+
<xsl:text>fi </xsl:text>
+
+ <xsl:text>eval "echo $PROJECT $STATUS" $SCORECARD </xsl:text>
</xsl:template>
1.50 +2 -0 jakarta-alexandria/proposal/gump/stylesheet/build.xsl
Index: build.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/build.xsl,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- build.xsl 5 Jul 2002 07:37:56 -0000 1.49
+++ build.xsl 13 Jul 2002 23:38:42 -0000 1.50
@@ -23,6 +23,8 @@
<build sync="{@sync}">
+ <scorecard file="{$logdir}/results.txt"/>
+
<chdir dir="{$basedir}"/>
<mkdir dir="{$logdir}"/>
<delete dir="build"/>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>