mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better groovyc logging
This commit is contained in:
+3
-1
@@ -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;
|
||||
|
||||
+2
-6
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user