jakarta-alexandria-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-alexandria/proposal/gump/stylesheet bash.xsl build.xsl
Date Sat, 13 Jul 2002 23:38:42 GMT
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&#10;</xsl:text>
  -
  +    <xsl:text>export SCORECARD_FILE="</xsl:text><xsl:value-of select="scorecard/@file"/><xsl:text>"&#10;</xsl:text>
  +    <xsl:text>export SCORECARD="&gt;&gt;$SCORECARD_FILE"&#10;</xsl:text>
  +    <xsl:text>rm -f $SCORECARD_FILE&#10;</xsl:text>
       <xsl:if test="$cygwin=1">
         <xsl:text>export CP=`cygpath --path --unix "$CLASSPATH"`&#10;</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>&#10;</xsl:text>
  +
       <xsl:choose>
         <xsl:when test="@name='clean'">
           <xsl:text>echo Restoring build directories&#10;</xsl:text>
  @@ -370,6 +380,12 @@
         <xsl:value-of select="$project"/>
         <xsl:text>\&lt;/a\&gt;\&lt;/p\&gt; $OUT"&#10;</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&#10;</xsl:text>
  +
         <xsl:text>fi&#10;</xsl:text>
       </xsl:for-each>
     </xsl:template>
  @@ -459,7 +475,10 @@
       <xsl:text> &lt;/dev/null $OUT 2&gt;&amp;1"&#10;</xsl:text>
       <xsl:text>test $? -ge 1 &amp;&amp; </xsl:text>
       <xsl:text>export STATUS="FAILED"&#10;</xsl:text>
  +
       <xsl:text>fi&#10;</xsl:text>
  +
  +    <xsl:text>eval "echo $PROJECT $STATUS" $SCORECARD&#10;</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:   <mailto:alexandria-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:alexandria-dev-help@jakarta.apache.org>


Mime
View raw message