Mercurial > hg > tc-symbol-server
comparison agent/src/jetbrains/buildServer/symbols/SymbolsIndexer.java @ 21:d7e0f085b4ea
minor build log improvement
author | Evgeniy.Koshkin |
---|---|
date | Mon, 05 Aug 2013 13:37:18 +0400 |
parents | 10cb71666d5e |
children | 7bd8a756aa78 |
comparison
equal
deleted
inserted
replaced
20:10cb71666d5e | 21:d7e0f085b4ea |
---|---|
126 for(File file : files){ | 126 for(File file : files){ |
127 commandLine.addParameter(file.getPath()); | 127 commandLine.addParameter(file.getPath()); |
128 } | 128 } |
129 buildLogger.message(String.format("Running command %s", commandLine.getCommandLineString())); | 129 buildLogger.message(String.format("Running command %s", commandLine.getCommandLineString())); |
130 final ExecResult execResult = SimpleCommandLineProcessRunner.runCommand(commandLine, null); | 130 final ExecResult execResult = SimpleCommandLineProcessRunner.runCommand(commandLine, null); |
131 buildLogger.message(execResult.getStdout()); | 131 final String stdout = execResult.getStdout(); |
132 if(!stdout.isEmpty()){ | |
133 buildLogger.message("Stdout: " + stdout); | |
134 } | |
132 if (execResult.getExitCode() == 0) return; | 135 if (execResult.getExitCode() == 0) return; |
133 buildLogger.warning(String.format("%s ends with non-zero exit code.", SYMBOLS_EXE)); | 136 buildLogger.warning(String.format("%s ends with non-zero exit code.", SYMBOLS_EXE)); |
134 buildLogger.warning(execResult.getStderr()); | 137 buildLogger.warning("Stdout: " + stdout); |
135 buildLogger.warning(execResult.getStdout()); | 138 buildLogger.warning("Stderr: " + execResult.getStderr()); |
136 buildLogger.exception(execResult.getException()); | 139 buildLogger.exception(execResult.getException()); |
137 } | 140 } |
138 } | 141 } |