charset = Charset.defaultCharset();
LOG.warn("Source encoding is platform dependent (" + charset.displayName() + "), default locale: " + Locale.getDefault());
}
return charset;
}
<BUG>private void initSources(ProjectDefinition module, PathResolver pathResolver, DefaultModuleFileSystem.Builder builder) {
for (String sourcePath : module.getSourceDirs()) {
builder.addSourceDir(pathResolver.relativeFile(module.getBaseDir(), sourcePath));

}</BUG>
List<File> sourceFiles = pathResolver.relativeFiles(module.getBaseDir(), module.getSourceFiles());

charset = Charset.defaultCharset();
LOG.warn("Source encoding is platform dependent (" + charset.displayName() + "), default locale: " + Locale.getDefault());
}
return charset;
}
private void initSources(ProjectDefinition module, PathResolver pathResolver, DefaultModuleFileSystem.Builder builder) {
if (!module.getSourceDirs().isEmpty()) {
LOG.info("Source dirs: ");
for (String sourcePath : module.getSourceDirs()) {
File dir = pathResolver.relativeFile(module.getBaseDir(), sourcePath);
LOG.info(" " + dir.getAbsolutePath());
builder.addSourceDir(dir);
}
}
