checkstyle error when trying to building crc 2.8.2

"Ahmsetter, Tobias" <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi!

 

I downloaded CrC 2.8.2 (cruisecontrol-src-2.8.2.zip) but it fails on
checkstyle when I try to build it. Saying "[checkstyle]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\p
ublishers\rss\RSS.java:43:1: Utility classes should not have a pu

blic or default constructor." Am I doing something wrong? 

 

Thanks,

 

Tobias

 

Below is complete output from when I try to build CrC

 

D:\apps\CrC\cruisecontrol-2.8.2\main>ant

Buildfile: build.xml

 

clean:

   [delete] Deleting directory
D:\apps\CrC\cruisecontrol-2.8.2\main\target

 

checklabel:

     [echo] Java: 1.6.0_11 (Java HotSpot(TM) Client VM)

     [echo]    in C:\swdev\java\jre

     [echo] Ant: Apache Ant version 1.7.0 compiled on December 13 2006

     [echo]    in C:\swdev\ant

     [echo] CruiseControl: 2.8.2

 

init:

    [mkdir] Created dir:
D:\apps\CrC\cruisecontrol-2.8.2\main\target\classes

    [mkdir] Created dir:
D:\apps\CrC\cruisecontrol-2.8.2\main\target\test-classes

    [mkdir] Created dir: D:\apps\CrC\cruisecontrol-2.8.2\main\target\tmp

    [mkdir] Created dir:
D:\apps\CrC\cruisecontrol-2.8.2\main\target\test-results

    [mkdir] Created dir:
D:\apps\CrC\cruisecontrol-2.8.2\main\target\emma-results

 

logger.jar:

 

clean:

   [delete] Deleting directory
D:\apps\CrC\cruisecontrol-2.8.2\main\loggers\target

 

compile:

    [mkdir] Created dir:
D:\apps\CrC\cruisecontrol-2.8.2\main\loggers\target\classes

    [javac] Compiling 4 source files to
D:\apps\CrC\cruisecontrol-2.8.2\main\loggers\target\classes

    [mkdir] Created dir:
D:\apps\CrC\cruisecontrol-2.8.2\main\loggers\target\test-classes

    [javac] Compiling 1 source file to
D:\apps\CrC\cruisecontrol-2.8.2\main\loggers\target\test-classes

 

test:

    [mkdir] Created dir:
D:\apps\CrC\cruisecontrol-2.8.2\main\loggers\target\test-results

    [junit] Running
net.sourceforge.cruisecontrol.builders.AntOutputLoggerTest

    [junit] Testsuite:
net.sourceforge.cruisecontrol.builders.AntOutputLoggerTest

    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,187
sec

    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,187
sec

    [junit]

    [mkdir] Created dir:
D:\apps\CrC\cruisecontrol-2.8.2\main\loggers\target\test-report

[junitreport] Processing
D:\apps\CrC\cruisecontrol-2.8.2\main\loggers\target\test-report\TESTS-Te
stSuites.xml to c:\Temp\null1161160807

[junitreport] Loading stylesheet
jar:file:/C:/swdev/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/
optional/junit/xsl/junit-frames.xsl

[junitreport] Transform time: 266ms

[junitreport] Deleting: c:\Temp\null1161160807

 

jar:

    [mkdir] Created dir:
D:\apps\CrC\cruisecontrol-2.8.2\main\loggers\target\dist

      [jar] Building jar:
D:\apps\CrC\cruisecontrol-2.8.2\main\loggers\target\dist\cruisecontrol-a
ntprogresslogger.jar

 

dist:

     [copy] Copying 1 file to D:\apps\CrC\cruisecontrol-2.8.2\main\dist

 

compile:

    [javac] Compiling 273 source files to
D:\apps\CrC\cruisecontrol-2.8.2\main\target\classes

    [javac]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\c
onfig\PluginPlugin.java:40: warning: [deprecation] net.sourceforge

.cruisecontrol.SelfConfiguringPlugin in net.sourceforge.cruisecontrol
has been deprecated

    [javac] import net.sourceforge.cruisecontrol.SelfConfiguringPlugin;

    [javac]                                     ^

    [javac]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\c
onfig\PluginPlugin.java:51: warning: [deprecation] net.sourceforge

.cruisecontrol.SelfConfiguringPlugin in net.sourceforge.cruisecontrol
has been deprecated

    [javac] public class PluginPlugin implements SelfConfiguringPlugin {

    [javac]                                      ^

    [javac]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\c
onfig\PluginPlugin.java:82: warning: [deprecation] configure(org.j

dom.Element) in net.sourceforge.cruisecontrol.SelfConfiguringPlugin has
been deprecated

    [javac]   public void configure(Element element) throws
CruiseControlException {

    [javac]               ^

    [javac]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\C
ruiseControlConfig.java:267: warning: [deprecation] register(org.j

dom.Element) in net.sourceforge.cruisecontrol.PluginRegistry has been
deprecated

    [javac]         rootPlugins.register(pluginElement);

    [javac]                    ^

    [javac]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\C
ruiseControlConfig.java:404: warning: [deprecation] register(org.j

dom.Element) in net.sourceforge.cruisecontrol.PluginRegistry has been
deprecated

    [javac]             projectPlugins.register(element);

    [javac]                           ^

    [javac]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\P
luginXMLHelper.java:133: warning: [deprecation] net.sourceforge.cr

uisecontrol.SelfConfiguringPlugin in net.sourceforge.cruisecontrol has
been deprecated

    [javac]                   + " self configuring: " + (pluginInstance
instanceof SelfConfiguringPlugin)

    [javac]
^

    [javac]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\P
luginXMLHelper.java:135: warning: [deprecation] net.sourceforge.cr

uisecontrol.SelfConfiguringPlugin in net.sourceforge.cruisecontrol has
been deprecated

    [javac]         if (pluginInstance instanceof SelfConfiguringPlugin)
{

    [javac]                                       ^

    [javac]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\P
luginXMLHelper.java:136: warning: [deprecation] net.sourceforge.cr

uisecontrol.SelfConfiguringPlugin in net.sourceforge.cruisecontrol has
been deprecated

    [javac]             ((SelfConfiguringPlugin)
pluginInstance).configure(objectElement);

    [javac]               ^

    [javac]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\P
luginXMLHelper.java:136: warning: [deprecation] configure(org.jdom

.Element) in net.sourceforge.cruisecontrol.SelfConfiguringPlugin has
been deprecated

    [javac]             ((SelfConfiguringPlugin)
pluginInstance).configure(objectElement);

    [javac]                                                     ^

    [javac]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\s
ourcecontrols\TeamFoundationServer.java:372: warning: [deprecation

] parse(java.lang.String) in java.util.Date has been deprecated

    [javac]                 date = new Date(Date.parse(dateString));

    [javac]                                     ^

    [javac] Note: Some input files use unchecked or unsafe operations.

    [javac] Note: Recompile with -Xlint:unchecked for details.

    [javac] 10 warnings

     [copy] Copying 3 files to
D:\apps\CrC\cruisecontrol-2.8.2\main\target\classes

     [copy] Copying 2 files to
D:\apps\CrC\cruisecontrol-2.8.2\main\target\classes

 

checkstyle:

    [mkdir] Created dir:
D:\apps\CrC\cruisecontrol-2.8.2\main\target\reports

[checkstyle] Running Checkstyle 4.4 on 461 files

[checkstyle]
D:\apps\CrC\cruisecontrol-2.8.2\main\src\net\sourceforge\cruisecontrol\p
ublishers\rss\RSS.java:43:1: Utility classes should not have a pu

blic or default constructor.

 

BUILD FAILED

D:\apps\CrC\cruisecontrol-2.8.2\main\build.xml:303: The following error
occurred while executing this line:

D:\apps\CrC\cruisecontrol-2.8.2\common\checkstyle-build.xml:58: Got 1
errors and 0 warnings.

 

Total time: 13 seconds

D:\apps\CrC\cruisecontrol-2.8.2\main>

This communication, including any attachments, may contain information that is proprietary, privileged, confidential or legally exempt from disclosure.  If you are not a named addressee, you are hereby notified that you are not authorized to read, print, retain a copy of or disseminate any portion of this communication without the consent of the sender and that doing so may be unlawful.  If you have received this communication in error, please immediately notify the sender via return e-mail and delete it from your system.

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.