boolean shouldImportSource = settings.getBoolean(CoreProperties.CORE_IMPORT_SOURCES_PROPERTY);
if (!shouldImportSource) {
- LOG.warn("Not importing source will prevent issues to be properly tracked between consecutive analyses");
+ LOG.warn("/!\\ Property '" + CoreProperties.CORE_IMPORT_SOURCES_PROPERTY
+ + "' is deprecated. Not importing source will prevent issues to be properly tracked between consecutive analyses.");
}
for (InputFile inputFile : fs.inputFiles(fs.predicates().all())) {
String languageKey = inputFile.language();
PropertyDefinition.builder(CoreProperties.CORE_IMPORT_SOURCES_PROPERTY)
.defaultValue("" + CoreProperties.CORE_IMPORT_SOURCES_DEFAULT_VALUE)
.name("Import sources")
- .description("Set to false if sources should not be imported and therefore not available in the Web UI (e.g. for security reasons).")
+ .description("[DEPRECATED] Set to false if sources should not be imported and therefore not available in the Web UI (e.g. for security reasons).")
.type(PropertyType.BOOLEAN)
.onQualifiers(Qualifiers.PROJECT, Qualifiers.MODULE)
.category(CoreProperties.CATEGORY_SECURITY)
.type(PropertyType.BOOLEAN)
.category(CoreProperties.CATEGORY_SECURITY)
.build()
- );
+ );
}
}
String CORE_VIOLATION_LOCALE_PROPERTY = "sonar.violationLocale";
String CORE_VIOLATION_LOCALE_DEFAULT_VALUE = "en";
+ /**
+ * @deprecated since 4.5.1.
+ */
+ @Deprecated
String CORE_IMPORT_SOURCES_PROPERTY = "sonar.importSources";
boolean CORE_IMPORT_SOURCES_DEFAULT_VALUE = true;