Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 59416 Details for
Bug 50972
Requested: ebuild for cruisecontrol
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
dev-util/cruisecontrol/files/cruisecontrol-2.2.1-pmd.patch
cruisecontrol-2.2.1-pmd.patch (text/plain), 5.84 KB, created by
Christopher G. Stach II
on 2005-05-20 15:21:24 UTC
(
hide
)
Description:
dev-util/cruisecontrol/files/cruisecontrol-2.2.1-pmd.patch
Filename:
MIME Type:
Creator:
Christopher G. Stach II
Created:
2005-05-20 15:21:24 UTC
Size:
5.84 KB
patch
obsolete
>diff -ur --new-file cruisecontrol-2.2.1-orig/reporting/jsp/webcontent/css/cruisecontrol.css cruisecontrol-2.2.1/reporting/jsp/webcontent/css/cruisecontrol.css >--- cruisecontrol-2.2.1-orig/reporting/jsp/webcontent/css/cruisecontrol.css 2004-11-03 13:48:56.000000000 -0600 >+++ cruisecontrol-2.2.1/reporting/jsp/webcontent/css/cruisecontrol.css 2005-05-20 16:25:17.000000000 -0500 >@@ -49,3 +49,14 @@ > .checkstyle-oddrow { background-color:#CCCCCC } > .checkstyle-data { font-family:arial,helvetica,sans-serif; font-size:8pt; color:#000000; } > .checkstyle-sectionheader { background-color:#000066; font-family:arial,helvetica,sans-serif; font-size:10pt; color:#FFFFFF; } >+ >+.pmd-evenrow { font-family:arial,helvetica,sans-serif; font-size:8pt; color:#000000; background-color:#FFFFCC; } >+.pmd-oddrow { font-family:arial,helvetica,sans-serif; font-size:8pt; color:#000000; background-color:#CCCCCC; } >+.pmd-fileheader { background-color:#FFFFFF; font-family:arial,helvetica,sans-serif; font-size:9pt; color:#000000; } >+.pmd-sectionheader { background-color:#000066; font-family:arial,helvetica,sans-serif; font-size:9pt; color:#FFFFFF; } >+.pmd-priority-1 { background-color:#FF0000; } >+.pmd-priority-2 { background-color:#FF3300; } >+.pmd-priority-3 { background-color:#FF9900; } >+.pmd-priority-4 { background-color:#FFFF00; } >+.pmd-priority-5 { background-color:#0033FF; } >+ >diff -ur --new-file cruisecontrol-2.2.1-orig/reporting/jsp/webcontent/xsl/buildresults.xsl cruisecontrol-2.2.1/reporting/jsp/webcontent/xsl/buildresults.xsl >--- cruisecontrol-2.2.1-orig/reporting/jsp/webcontent/xsl/buildresults.xsl 2005-01-18 14:10:20.000000000 -0600 >+++ cruisecontrol-2.2.1/reporting/jsp/webcontent/xsl/buildresults.xsl 2005-05-20 16:21:14.000000000 -0500 >@@ -40,6 +40,7 @@ > <xsl:import href="maven.xsl"/> > <xsl:import href="nant.xsl"/> > <xsl:import href="checkstyle.xsl"/> >+ <xsl:import href="pmd.xsl"/> > <xsl:import href="errors.xsl"/> > <xsl:import href="compile.xsl"/> > <xsl:import href="javadoc.xsl"/> >@@ -55,6 +56,7 @@ > <p><xsl:apply-templates select="$cruisecontrol.list" mode="maven"/></p> > <p><xsl:apply-templates select="$cruisecontrol.list" mode="nant"/></p> > <p><xsl:apply-templates select="$cruisecontrol.list" mode="checkstyle"/></p> >+ <p><xsl:apply-templates select="$cruisecontrol.list" mode="pmd"/></p> > <p><xsl:apply-templates select="$cruisecontrol.list" mode="errors"/></p> > <!-- > for traditional cc display of only compile errors and warnings >diff -ur --new-file cruisecontrol-2.2.1-orig/reporting/jsp/webcontent/xsl/pmd.xsl cruisecontrol-2.2.1/reporting/jsp/webcontent/xsl/pmd.xsl >--- cruisecontrol-2.2.1-orig/reporting/jsp/webcontent/xsl/pmd.xsl 1969-12-31 18:00:00.000000000 -0600 >+++ cruisecontrol-2.2.1/reporting/jsp/webcontent/xsl/pmd.xsl 2005-05-20 16:30:17.000000000 -0500 >@@ -0,0 +1,76 @@ >+<?xml version="1.0"?> >+ >+<!-- >+ - $Header$ >+ - >+ - XSL template for PMD results reporting inside of CruiseControl. >+ - >+ - Copyright (C) 2005 Christopher G. Stach II <cgs@ldsys.net> >+ - >+ - This program is free software; you can redistribute it and/or >+ - modify it under the terms of the GNU General Public License >+ - as published by the Free Software Foundation; either version 2 >+ - of the License, or (at your option) any later version. >+ - >+ - This program is distributed in the hope that it will be useful, >+ - but WITHOUT ANY WARRANTY; without even the implied warranty of >+ - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+ - GNU General Public License for more details. >+ - >+ - You should have received a copy of the GNU General Public License >+ - along with this program; if not, write to the Free Software >+ - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. >+ --> >+ >+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> >+ <xsl:output method="html" /> >+ >+ <xsl:template match="/" mode="pmd"> >+ <xsl:apply-templates select="cruisecontrol/pmd" mode="pmd" /> >+ </xsl:template> >+ >+ <xsl:template match="pmd[file/violation]" mode="pmd"> >+ <xsl:variable name="total.violation.count" select="count(file/violation)" /> >+ <table align="center" cellpadding="2" cellspacing="0" border="0" width="98%"> >+ <tr> >+ <td class="pmd-sectionheader">PMD violations (<xsl:value-of select="$total.violation.count" />)</td> >+ </tr> >+ <tr> >+ <td><table width="100%"> >+ <xsl:for-each select="file"> >+ <xsl:sort select="@name" /> >+ <tr class="pmd-fileheader"> >+ <td colspan="5"><xsl:value-of select="@name" /> (<xsl:value-of select="count(violation)" />)</td> >+ </tr> >+ <xsl:for-each select="violation"> >+ <xsl:sort select="@line" data-type="number" /> >+ <xsl:sort select="@priority" data-type="number" order="descending" /> >+ <tr> >+ <xsl:if test="position() mod 2 = 0"> >+ <xsl:attribute name="class">pmd-evenrow</xsl:attribute> >+ </xsl:if> >+ <xsl:if test="position() mod 2 = 1"> >+ <xsl:attribute name="class">pmd-oddrow</xsl:attribute> >+ </xsl:if> >+ <td width="10"> >+ <xsl:attribute name="class">pmd-priority-<xsl:value-of select="@priority" /></xsl:attribute> >+   >+ </td> >+ <td>Line <xsl:value-of select="@line" /></td> >+ <td><xsl:value-of select="text()" /></td> >+ <td><xsl:value-of select="@ruleset" /></td> >+ <td><xsl:value-of select="@rule" /></td> >+ </tr> >+ </xsl:for-each> >+ </xsl:for-each> >+ </table></td> >+ </tr> >+ </table> >+ </xsl:template> >+ >+ <xsl:template match="/"> >+ <xsl:apply-templates select="." mode="pmd" /> >+ </xsl:template> >+ >+</xsl:stylesheet> >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 50972
:
41278
|
41279
|
41280
|
58438
|
58597
|
58602
|
58604
|
58674
|
58675
|
58677
|
58685
|
58686
|
59411
|
59412
|
59413
|
59414
| 59416 |
59629
|
59630
|
72708
|
72709
|
72711
|
72712
|
72972
|
72973
|
72974
|
103707
|
103708
|
103709
|
103710
|
103711