Re: checkstyle error when trying to building crc 2.8.2

Jeffrey Fredrick <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
> Am I doing something wrong?
> D:\apps\CrC\cruisecontrol-2.8.2\main>ant
> [checkstyle] Running Checkstyle 4.4 on 461 files

I think your local install of Ant has a new checkstyle. Try running
the build.bat that's in the cruisecontrol\main directory. That should
use our 4.3 checkstyle and this error should go away.

Jtf


On Tue, Feb 10, 2009 at 12:15 AM, Ahmsetter, Tobias <[email protected]> wrote:
> 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\publishers\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-TestSuites.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-antprogresslogger.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\config\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\config\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\config\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\CruiseControlConfig.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\CruiseControlConfig.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\PluginXMLHelper.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\PluginXMLHelper.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\PluginXMLHelper.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\PluginXMLHelper.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\sourcecontrols\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\publishers\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
>
>



-- 
 Free hour of CI consulting: http://the.ci-guys.com

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
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.