diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-07-12 12:45:43 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-07-12 13:18:57 +0400 |
commit | ab6af5363626a14f9cdba7ded99125075a317881 (patch) | |
tree | 249ee2d2fe2bb9cccaa81d7458a74e5446a4ffef /plugins | |
parent | 43da0ad5489f38cfbde2b1728fd791c4528f1ab7 (diff) | |
download | sonarqube-ab6af5363626a14f9cdba7ded99125075a317881.tar.gz sonarqube-ab6af5363626a14f9cdba7ded99125075a317881.zip |
SONAR-2604 Default value for properties "sonar.java.source" and "sonar.java.target" should be "1.5"
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/batch/MavenInitializer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/batch/MavenInitializer.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/batch/MavenInitializer.java index a76799deba1..f64458e17e8 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/batch/MavenInitializer.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/batch/MavenInitializer.java @@ -44,12 +44,12 @@ public class MavenInitializer extends Initializer { if (StringUtils.isBlank(conf.getString(JavaUtils.JAVA_SOURCE_PROPERTY))) { String version = MavenUtils.getJavaSourceVersion(pom); conf.setProperty(JavaUtils.JAVA_SOURCE_PROPERTY, version); - Logs.INFO.info("Java source version: {}", version); + Logs.INFO.info("Java source version: {}", JavaUtils.getSourceVersion(project)); } if (StringUtils.isBlank(conf.getString(JavaUtils.JAVA_TARGET_PROPERTY))) { String version = MavenUtils.getJavaVersion(pom); conf.setProperty(JavaUtils.JAVA_TARGET_PROPERTY, version); - Logs.INFO.info("Java target version: {}", version); + Logs.INFO.info("Java target version: {}", JavaUtils.getTargetVersion(project)); } /* * See http://jira.codehaus.org/browse/SONAR-2151 |