} finally {
IOUtils.closeQuietly(fileInputStream);
}
+ // Trim properties
+ for (String propKey : propsFromFile.stringPropertyNames()) {
+ propsFromFile.setProperty(propKey, StringUtils.trim(propsFromFile.getProperty(propKey)));
+ }
return propsFromFile;
}
-sonar.projectKey=com.foo.project.module1
+sonar.projectKey=com.foo.project.module1
sonar.projectName=Foo Module 1
-sonar.projectDescription=Description of Module 1
+sonar.projectDescription=Description of Module 1
sonar.sources=sources
-sonar.projectKey=com.foo.project
+sonar.projectKey=com.foo.project
sonar.projectName=Foo Project
sonar.projectVersion=1.0-SNAPSHOT
-sonar.projectDescription=Description of Foo Project
+sonar.projectDescription=Description of Foo Project
sonar.tests=tests
sonar.binaries=target/classes