summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-07-12 12:45:43 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-07-12 13:18:57 +0400
commitab6af5363626a14f9cdba7ded99125075a317881 (patch)
tree249ee2d2fe2bb9cccaa81d7458a74e5446a4ffef /plugins
parent43da0ad5489f38cfbde2b1728fd791c4528f1ab7 (diff)
downloadsonarqube-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.java4
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