mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
more logging
This commit is contained in:
+26
-3
@@ -161,14 +161,16 @@ public class TranslatingCompilerFilesMonitor implements ApplicationComponent {
|
||||
synchronized (mySourcesToRecompile) {
|
||||
final TIntHashSet pathsToRecompile = mySourcesToRecompile.get(projectId);
|
||||
if (_forceCompile || pathsToRecompile != null && !pathsToRecompile.isEmpty()) {
|
||||
if (ourDebugMode) {
|
||||
System.out.println("Analysing potentially recompilable files for " + compiler.getDescription());
|
||||
}
|
||||
while (scopeSrcIterator.hasNext()) {
|
||||
final VirtualFile file = scopeSrcIterator.next();
|
||||
if (!file.isValid()) {
|
||||
if (LOG.isDebugEnabled() || ourDebugMode) {
|
||||
final String message = "Skipping invalid file " + file.getPresentableUrl();
|
||||
LOG.debug(message);
|
||||
LOG.debug("Skipping invalid file " + file.getPresentableUrl());
|
||||
if (ourDebugMode) {
|
||||
System.out.println(message);
|
||||
System.out.println("\t SKIPPED(INVALID) " + file.getPresentableUrl());
|
||||
}
|
||||
}
|
||||
continue;
|
||||
@@ -177,17 +179,38 @@ public class TranslatingCompilerFilesMonitor implements ApplicationComponent {
|
||||
if (_forceCompile) {
|
||||
if (compiler.isCompilableFile(file, context) && !configuration.isExcludedFromCompilation(file)) {
|
||||
toCompile.add(file);
|
||||
if (ourDebugMode) {
|
||||
System.out.println("\t INCLUDED " + file.getPresentableUrl());
|
||||
}
|
||||
selectedForRecompilation.add(file);
|
||||
if (pathsToRecompile == null || !pathsToRecompile.contains(fileId)) {
|
||||
addSourceForRecompilation(projectId, file, null);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (ourDebugMode) {
|
||||
System.out.println("\t NOT COMPILABLE OR EXCLUDED " + file.getPresentableUrl());
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (pathsToRecompile.contains(fileId)) {
|
||||
if (compiler.isCompilableFile(file, context) && !configuration.isExcludedFromCompilation(file)) {
|
||||
toCompile.add(file);
|
||||
if (ourDebugMode) {
|
||||
System.out.println("\t INCLUDED " + file.getPresentableUrl());
|
||||
}
|
||||
selectedForRecompilation.add(file);
|
||||
}
|
||||
else {
|
||||
if (ourDebugMode) {
|
||||
System.out.println("\t NOT COMPILABLE OR EXCLUDED " + file.getPresentableUrl());
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (ourDebugMode) {
|
||||
System.out.println("\t NOT INCLUDED " + file.getPresentableUrl());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user