Ticket #19 (new defect)

Opened 5 years ago

Last modified 4 years ago

JcReportAntTask should be "failfast"

Reported by: amessner Owned by: jCoderZ
Priority: major Milestone: unscheduled
Component: misc Version: trunk
Keywords: Cc:

Description

The JcReportAntTask? is a bit too "fault tolerant".

I had the following configuration problems:

  • could not load checkstyle config (config file error)
  • could not load findbugs coreplugin.jar (classpath config error)
  • PMD and CPD both failed (configuration error)
  • Merging reports failed
  • Java2Html failed

Still I got "BUILD SUCCESSFUL" in the end.

The JcReport ant task should fail as soon as one tool fails (or maybe support a failOnError property per tool).

Change History

Changed 4 years ago by amandel

I added a new finding type to be able to capture this kind of errors. Chech out Changeset [312] and [314]

See source:trunk/src/java/org/jcoderz/phoenix/report/ReportNormalizer.java#L159 how to add a finding of this type.

Findings of this level are always on to of the list because of there priority.

This might at least lower some of the cases you described.

Note: See TracTickets for help on using tickets.