better groovyc logging

This commit is contained in:
peter
2012-10-23 12:04:19 +02:00
parent f778f387f0
commit afb118bf6e
2 changed files with 5 additions and 7 deletions
@@ -76,7 +76,6 @@ public class GroovyBuilder extends ModuleLevelBuilder {
}
if (Utils.IS_TEST_MODE || LOG.isDebugEnabled()) {
LOG.info("forStubs=" + myForStubs);
LOG.info("toCompile: " + toCompile);
}
Map<ModuleBuildTarget, String> finalOutputs = getCanonicalModuleOutputs(context, chunk);
@@ -128,6 +127,9 @@ public class GroovyBuilder extends ModuleLevelBuilder {
private static Set<String> getPathsToCompile(List<File> toCompile) {
final Set<String> toCompilePaths = new LinkedHashSet<String>();
for (File file : toCompile) {
if (LOG.isDebugEnabled()) {
LOG.debug("Path to compile: " + file.getPath());
}
toCompilePaths.add(FileUtil.toSystemIndependentName(file.getPath()));
}
return toCompilePaths;
@@ -44,7 +44,7 @@ public class GroovycOSProcessHandler extends BaseOSProcessHandler {
private final List<CompilerMessage> compilerMessages = new ArrayList<CompilerMessage>();
private final StringBuffer stdErr = new StringBuffer();
private static final Logger LOG = Logger.getInstance("org.jetbrains.jps.incremental.groovy.GroovycOSProcessHandler");
private static final Logger LOG = Logger.getInstance("#org.jetbrains.jps.incremental.groovy.GroovycOSProcessHandler");
private final Consumer<String> myStatusUpdater;
public GroovycOSProcessHandler(Process process, Consumer<String> statusUpdater) {
@@ -150,11 +150,7 @@ public class GroovycOSProcessHandler extends BaseOSProcessHandler {
? BuildMessage.Kind.WARNING
: BuildMessage.Kind.INFO;
CompilerMessage msg = new CompilerMessage("Groovyc", kind, message, url, -1, -1, -1, lineInt, columnInt);
if (LOG.isDebugEnabled()) {
LOG.debug("Message received: " + msg);
}
compilerMessages.add(msg);
compilerMessages.add(new CompilerMessage("Groovyc", kind, message, url, -1, -1, -1, lineInt, columnInt));
}
}
}