From: Simon Brandhof Date: Sat, 15 Mar 2014 21:57:10 +0000 (+0100) Subject: SONAR-4843 Rename the property sonar.web.dev to sonar.rails.dev X-Git-Tag: 4.3~421 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=533233be6eac1836cd367585bf5839154a998de2;p=sonarqube.git SONAR-4843 Rename the property sonar.web.dev to sonar.rails.dev --- diff --git a/sonar-application/src/main/java/org/sonar/application/Webapp.java b/sonar-application/src/main/java/org/sonar/application/Webapp.java index 223de97c025..cda49acd69e 100644 --- a/sonar-application/src/main/java/org/sonar/application/Webapp.java +++ b/sonar-application/src/main/java/org/sonar/application/Webapp.java @@ -57,10 +57,10 @@ class Webapp { } static void configureRailsMode(Props props, Context context) { - if (props.booleanOf("sonar.web.dev")) { + if (props.booleanOf("sonar.rails.dev")) { context.addParameter(RAILS_ENV, "development"); context.addParameter(JRUBY_MAX_RUNTIMES, "3"); - LoggerFactory.getLogger(Webapp.class).warn("\n\n\n------ DEVELOPMENT MODE IS ENABLED ------\n\n\n"); + LoggerFactory.getLogger(Webapp.class).warn("\n\n\n------ RAILS DEVELOPMENT MODE IS ENABLED ------\n\n\n"); } else { context.addParameter(RAILS_ENV, "production"); context.addParameter(JRUBY_MAX_RUNTIMES, "1"); diff --git a/sonar-application/src/test/java/org/sonar/application/WebappTest.java b/sonar-application/src/test/java/org/sonar/application/WebappTest.java index 82fdd5405d4..2ddb47b5460 100644 --- a/sonar-application/src/test/java/org/sonar/application/WebappTest.java +++ b/sonar-application/src/test/java/org/sonar/application/WebappTest.java @@ -70,7 +70,7 @@ public class WebappTest { @Test public void configure_dev_mode() throws Exception { Props props = mock(Props.class); - when(props.booleanOf("sonar.web.dev")).thenReturn(true); + when(props.booleanOf("sonar.rails.dev")).thenReturn(true); Context context = mock(Context.class); Webapp.configureRailsMode(props, context); @@ -82,7 +82,7 @@ public class WebappTest { @Test public void configure_production_mode() throws Exception { Props props = mock(Props.class); - when(props.booleanOf("sonar.web.dev")).thenReturn(false); + when(props.booleanOf("sonar.rails.dev")).thenReturn(false); Context context = mock(Context.class); Webapp.configureRailsMode(props, context);