<< Back to previous view |
[QB-1891] New MVN builds don't capture the Maven output to QB logs
|
|
Status: | Resolved |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | 5.1.3 |
Fix Version/s: | 5.1.5 |
Type: | Bug | Priority: | Major |
Reporter: | Peter Daugavietis | Assigned To: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown |
Description |
When running maven builds, the actual maven output (including BUILD SUCCESSFUL) isn't visible in the QB log, but build appears to work.
|
Comments |
Comment by Peter Daugavietis [ 20/Dec/13 03:07 AM ] |
related to |
Comment by Peter Daugavietis [ 20/Dec/13 03:27 PM ] |
I'm guessing that it's this section in the com.pmease.quickbuild.plugin.builder.maven_5.1.4.jar
public void consume(String line) { if (line.startsWith("[ERROR] ")) { Context.getLogger().error(line.substring("[ERROR] ".length())); this.inErrorBlock = true; } else if (line.equals("[INFO] BUILD FAILURE")) { Context.getLogger().error(line.substring("[INFO] ".length())); this.inErrorBlock = false; } else if (line.startsWith("[INFO] ")) { Context.getLogger().debug(line.substring("[INFO] ".length())); this.inErrorBlock = false; } else if (line.startsWith("[DEBUG] ")) { Context.getLogger().debug(line.substring("[DEBUG] ".length())); this.inErrorBlock = false; } else if (line.startsWith("[WARNING] ")) { Context.getLogger().warn(line.substring("[WARNING] ".length())); this.inErrorBlock = false; } else if (this.inErrorBlock) { Context.getLogger().error(line); } else { Context.getLogger().debug(line); } |