You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stringmessage = "One (sub)project contains Java source files that are not compiled (" + fileSystem.baseDir().getPath() + ").";
153
+
StringBuildermessage = newStringBuilder("One (sub)project contains Java source files that are not compiled (" + fileSystem.baseDir().getPath() + ").");
154
+
155
+
for (Stringlanguage : FindbugsPlugin.SUPPORTED_JVM_LANGUAGES) {
156
+
if (fileSystem.hasFiles(fileSystem.predicates().hasLanguage(language))) {
157
+
message.append("\nProject has " + language + " source file(s), they must be compiled to be analyzed.");
158
+
}
159
+
}
154
160
155
161
if (!config.hasKey(SONAR_JAVA_BINARIES) || config.getStringArray(SONAR_JAVA_BINARIES).length == 0) {
156
-
message += "\nProperty sonar.java.binaries was not set, it is required to locate the compiled .class files. For instance set the property to: sonar.java.binaries=target/classes";
162
+
message.append("\nProperty sonar.java.binaries was not set, it is required to locate the compiled .class files. For instance set the property to: sonar.java.binaries=target/classes");
157
163
} else {
158
-
message += "\nsonar.java.binaries was set to " + config.get(SONAR_JAVA_BINARIES).orElse(null);
164
+
message.append("\nsonar.java.binaries was set to " + config.get(SONAR_JAVA_BINARIES).orElse(null));
159
165
}
160
166
161
167
if (javaResourceLocator.classpath().isEmpty()) {
162
-
message += "\nSonar JavaResourceLocator.classpath was empty";
168
+
message.append("\nSonar JavaResourceLocator.classpath was empty");
163
169
}
164
170
165
171
if (javaResourceLocator.classFilesToAnalyze().isEmpty()) {
166
-
message += "\nSonar JavaResourceLocator.classFilesToAnalyze was empty";
172
+
message.append("\nSonar JavaResourceLocator.classFilesToAnalyze was empty");
0 commit comments