avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/bzip2 build.xml
Date Tue, 26 Mar 2002 10:40:23 GMT
donaldp     02/03/26 02:40:23

  Modified:    tools/etc checkstyle-frames.xsl
               cache    build.xml
               cli      build.xml
               i18n     build.xml
               io       build.xml
               extension build.xml
               naming   build.xml
               zip      build.xml
               tar      build.xml
               baxter   build.xml
               bzip2    build.xml
  Log:
  Ugly hack to make the absolute paths in checkstyle report not fail for users on windows
platforms. Users of stylesheet pass in path to strip from all the entrys in report.
  
  Revision  Changes    Path
  1.2       +13 -5     jakarta-avalon-excalibur/tools/etc/checkstyle-frames.xsl
  
  Index: checkstyle-frames.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/tools/etc/checkstyle-frames.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- checkstyle-frames.xsl	21 Mar 2002 01:16:30 -0000	1.1
  +++ checkstyle-frames.xsl	26 Mar 2002 10:40:22 -0000	1.2
  @@ -61,6 +61,8 @@
       <xsl:decimal-format decimal-separator="." grouping-separator="," />
   
       <xsl:param name="output.dir" select="'.'"/>
  +    <xsl:param name="pathhack" select="'.'"/>
  +
   
       <xsl:template match="checkstyle">
           <!-- create the index.html -->
  @@ -229,9 +231,11 @@
               <td nowrap="nowrap">
                   <a>
                       <xsl:attribute name="href">
  -                        <xsl:text>files/</xsl:text><xsl:value-of select="@name"/><xsl:text>.html</xsl:text>
  +                        <xsl:variable name="prefixLen" select="string-length($pathhack)+2"/>
  +                        <xsl:value-of select="$output.dir"/>/files/<xsl:value-of
select="substring(@name,$prefixLen)"/>.html
                       </xsl:attribute>
  -                    <xsl:value-of select="@name"/>
  +                    <xsl:variable name="prefixLen" select="string-length($pathhack)+2"/>
  +                    <xsl:value-of select="translate(substring(@name,$prefixLen),'\\','/')"/>
                   </a>
               </td>
               <td><xsl:value-of select="count(error)"/></td>
  @@ -243,9 +247,11 @@
               <td nowrap="nowrap">
                   <a target="fileFrame">
                       <xsl:attribute name="href">
  -                        <xsl:text>files/</xsl:text><xsl:value-of select="@name"/><xsl:text>.html</xsl:text>
  +                        <xsl:variable name="prefixLen" select="string-length($pathhack)+2"/>
  +                        <xsl:value-of select="$output.dir"/>/files/<xsl:value-of
select="substring(@name,$prefixLen)"/>.html
                       </xsl:attribute>
  -                    <xsl:value-of select="@name"/>
  +                    <xsl:variable name="prefixLen" select="string-length($pathhack)+2"/>
  +                    <xsl:value-of select="translate(substring(@name,$prefixLen),'\\','/')"/>
                   </a>
               </td>
           </tr>
  @@ -269,7 +275,9 @@
       </xsl:template>
   
       <xsl:template match="file">
  -        <redirect:write file="{$output.dir}/files/{@name}.html">
  +        <xsl:variable name="prefixLen" select="string-length($pathhack)+1"/>
  +        <xsl:variable name="output.file"><xsl:value-of select="$output.dir"/>/files/<xsl:value-of
select="substring(@name,$prefixLen)"/>.html</xsl:variable>
  +        <redirect:write file="{$output.file}">
               <html>
                   <head>
                       <link rel="stylesheet" type="text/css">
  
  
  
  1.9       +3 -1      jakarta-avalon-excalibur/cache/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/cache/build.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- build.xml	24 Mar 2002 03:26:39 -0000	1.8
  +++ build.xml	26 Mar 2002 10:40:22 -0000	1.9
  @@ -235,7 +235,9 @@
   
           <mkdir dir="${build.reports}/checkstyle"/>
           <style style="../tools/etc/checkstyle-frames.xsl" in="build/checkstyle-results.xml"
  -            out="${build.reports}/checkstyle/delete-me.html"/>
  +            out="${build.reports}/checkstyle/delete-me.html">
  +            <param name="pathhack" expression="${checkstyle.pathhack}"/>
  +        </style>
   
       </target>
   
  
  
  
  1.22      +3 -1      jakarta-avalon-excalibur/cli/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/cli/build.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- build.xml	24 Mar 2002 03:26:39 -0000	1.21
  +++ build.xml	26 Mar 2002 10:40:22 -0000	1.22
  @@ -230,7 +230,9 @@
   
           <mkdir dir="${build.reports}/checkstyle"/>
           <style style="../tools/etc/checkstyle-frames.xsl" in="build/checkstyle-results.xml"
  -            out="${build.reports}/checkstyle/delete-me.html"/>
  +            out="${build.reports}/checkstyle/delete-me.html">
  +            <param name="pathhack" expression="${checkstyle.pathhack}"/>
  +        </style>
   
       </target>
   
  
  
  
  1.25      +5 -2      jakarta-avalon-excalibur/i18n/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/i18n/build.xml,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- build.xml	24 Mar 2002 03:26:39 -0000	1.24
  +++ build.xml	26 Mar 2002 10:40:22 -0000	1.25
  @@ -224,13 +224,16 @@
       </target>
   
       <target name="checkstyle-report"
  -        depends="checkstyle"
           if="do.checkstyle"
  +        depends="checkstyle"
           description="Generate Checkstyle Report">
   
  +        <property name="checkstyle.pathhack" location="."/>
           <mkdir dir="${build.reports}/checkstyle"/>
           <style style="../tools/etc/checkstyle-frames.xsl" in="build/checkstyle-results.xml"
  -            out="${build.reports}/checkstyle/delete-me.html"/>
  +            out="${build.reports}/checkstyle/delete-me.html">
  +            <param name="pathhack" expression="${checkstyle.pathhack}"/>
  +        </style>
   
       </target>
   
  
  
  
  1.26      +3 -1      jakarta-avalon-excalibur/io/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/io/build.xml,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- build.xml	24 Mar 2002 03:26:39 -0000	1.25
  +++ build.xml	26 Mar 2002 10:40:22 -0000	1.26
  @@ -230,7 +230,9 @@
   
           <mkdir dir="${build.reports}/checkstyle"/>
           <style style="../tools/etc/checkstyle-frames.xsl" in="build/checkstyle-results.xml"
  -            out="${build.reports}/checkstyle/delete-me.html"/>
  +            out="${build.reports}/checkstyle/delete-me.html">
  +            <param name="pathhack" expression="${checkstyle.pathhack}"/>
  +        </style>
   
       </target>
   
  
  
  
  1.25      +3 -1      jakarta-avalon-excalibur/extension/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/extension/build.xml,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- build.xml	24 Mar 2002 03:26:39 -0000	1.24
  +++ build.xml	26 Mar 2002 10:40:22 -0000	1.25
  @@ -230,7 +230,9 @@
   
           <mkdir dir="${build.reports}/checkstyle"/>
           <style style="../tools/etc/checkstyle-frames.xsl" in="build/checkstyle-results.xml"
  -            out="${build.reports}/checkstyle/delete-me.html"/>
  +            out="${build.reports}/checkstyle/delete-me.html">
  +            <param name="pathhack" expression="${checkstyle.pathhack}"/>
  +        </style>
   
       </target>
   
  
  
  
  1.26      +3 -1      jakarta-avalon-excalibur/naming/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/naming/build.xml,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- build.xml	24 Mar 2002 03:00:03 -0000	1.25
  +++ build.xml	26 Mar 2002 10:40:22 -0000	1.26
  @@ -237,7 +237,9 @@
   
           <mkdir dir="${build.reports}/checkstyle"/>
           <style style="../tools/etc/checkstyle-frames.xsl" in="build/checkstyle-results.xml"
  -            out="${build.reports}/checkstyle/delete-me.html"/>
  +            out="${build.reports}/checkstyle/delete-me.html">
  +            <param name="pathhack" expression="${checkstyle.pathhack}"/>
  +        </style>
   
       </target>
   
  
  
  
  1.4       +3 -1      jakarta-avalon-excalibur/zip/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/zip/build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.xml	24 Mar 2002 03:26:39 -0000	1.3
  +++ build.xml	26 Mar 2002 10:40:23 -0000	1.4
  @@ -230,7 +230,9 @@
   
           <mkdir dir="${build.reports}/checkstyle"/>
           <style style="../tools/etc/checkstyle-frames.xsl" in="build/checkstyle-results.xml"
  -            out="${build.reports}/checkstyle/delete-me.html"/>
  +            out="${build.reports}/checkstyle/delete-me.html">
  +            <param name="pathhack" expression="${checkstyle.pathhack}"/>
  +        </style>
   
       </target>
   
  
  
  
  1.5       +3 -1      jakarta-avalon-excalibur/tar/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/tar/build.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- build.xml	24 Mar 2002 03:26:39 -0000	1.4
  +++ build.xml	26 Mar 2002 10:40:23 -0000	1.5
  @@ -230,7 +230,9 @@
   
           <mkdir dir="${build.reports}/checkstyle"/>
           <style style="../tools/etc/checkstyle-frames.xsl" in="build/checkstyle-results.xml"
  -            out="${build.reports}/checkstyle/delete-me.html"/>
  +            out="${build.reports}/checkstyle/delete-me.html">
  +            <param name="pathhack" expression="${checkstyle.pathhack}"/>
  +        </style>
   
       </target>
   
  
  
  
  1.2       +3 -1      jakarta-avalon-excalibur/baxter/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/baxter/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	24 Mar 2002 07:41:29 -0000	1.1
  +++ build.xml	26 Mar 2002 10:40:23 -0000	1.2
  @@ -231,7 +231,9 @@
   
           <mkdir dir="${build.reports}/checkstyle"/>
           <style style="../tools/etc/checkstyle-frames.xsl" in="build/checkstyle-results.xml"
  -            out="${build.reports}/checkstyle/delete-me.html"/>
  +            out="${build.reports}/checkstyle/delete-me.html">
  +            <param name="pathhack" expression="${checkstyle.pathhack}"/>
  +        </style>
   
       </target>
   
  
  
  
  1.2       +3 -1      jakarta-avalon-excalibur/bzip2/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/bzip2/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	24 Mar 2002 07:02:31 -0000	1.1
  +++ build.xml	26 Mar 2002 10:40:23 -0000	1.2
  @@ -230,7 +230,9 @@
   
           <mkdir dir="${build.reports}/checkstyle"/>
           <style style="../tools/etc/checkstyle-frames.xsl" in="build/checkstyle-results.xml"
  -            out="${build.reports}/checkstyle/delete-me.html"/>
  +            out="${build.reports}/checkstyle/delete-me.html">
  +            <param name="pathhack" expression="${checkstyle.pathhack}"/>
  +        </style>
   
       </target>
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message