History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1891
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Peter Daugavietis
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

New MVN builds don't capture the Maven output to QB logs

Created: 20/Dec/13 02:31 AM   Updated: 21/Dec/13 02:42 PM
Component/s: None
Affects Version/s: 5.1.3
Fix Version/s: 5.1.5

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
When running maven builds, the actual maven output (including BUILD SUCCESSFUL) isn't visible in the QB log, but build appears to work.

 All   Comments   Work Log   Change History      Sort Order:
Peter Daugavietis [20/Dec/13 03:07 AM]
related to QB-1865

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);
            }