Odd error in checkstyle 5.0 ant task

View: New views
2 Messages — Rating Filter:   Alert me  

Odd error in checkstyle 5.0 ant task

by eraonel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Odd error in checkstyle 5.0 ant task

Hi,

I am running new checkstyle version 5.0 ant task with ant 1.6.5 and java 1.5.0_06.
When I run it looks fine:

[checkstyle] To process the files took 189597 ms.
[checkstyle] Total execution took 247035 ms.

Then I get a build failed:

BUILD FAILED
/vobs/build/ant_build/common.xml:209: Got 230663 errors and 0 warnings.
        at com.puppycrawl.tools.checkstyle.CheckStyleTask.realExecute(CheckStyleTask.java:336)
        at com.puppycrawl.tools.checkstyle.CheckStyleTask.execute(CheckStyleTask.java:262)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)


Anyone who has an idea what it is? I ran this using -debug for ant.

Br,

//mikael


Mikael Petterson
Software Designer



Ericsson AB, Stockholm, Sweden

Visiting address: Torshamnsgatan 42, Kista
Phone: +46 70 2673044
E-mail:
mikael.petterson@...



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Checkstyle-user mailing list
Checkstyle-user@...
https://lists.sourceforge.net/lists/listinfo/checkstyle-user

Re: Odd error in checkstyle 5.0 ant task

by Lars Kühne-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mikael,

in the default configuration the checkstyle task breaks the build if any checkstyle errors are found.

You can configure this behaviour by setting the maxErrors parameter on the ant task, see http://checkstyle.sourceforge.net/anttask.html#Parameters for details.

Hope this helps,
Lars

On Thu, Sep 17, 2009 at 2:04 PM, Mikael Petterson <mikael.petterson@...> wrote:

Hi,

I am running new checkstyle version 5.0 ant task with ant 1.6.5 and java 1.5.0_06.
When I run it looks fine:

[checkstyle] To process the files took 189597 ms.
[checkstyle] Total execution took 247035 ms.

Then I get a build failed:

BUILD FAILED
/vobs/build/ant_build/common.xml:209: Got 230663 errors and 0 warnings.
        at com.puppycrawl.tools.checkstyle.CheckStyleTask.realExecute(CheckStyleTask.java:336)
        at com.puppycrawl.tools.checkstyle.CheckStyleTask.execute(CheckStyleTask.java:262)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)


Anyone who has an idea what it is? I ran this using -debug for ant.

Br,

//mikael


Mikael Petterson
Software Designer



Ericsson AB, Stockholm, Sweden

Visiting address: Torshamnsgatan 42, Kista
Phone: +46 70 2673044
E-mail:
mikael.petterson@...



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Checkstyle-user mailing list
Checkstyle-user@...
https://lists.sourceforge.net/lists/listinfo/checkstyle-user



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Checkstyle-user mailing list
Checkstyle-user@...
https://lists.sourceforge.net/lists/listinfo/checkstyle-user