From: fmallet Date: Wed, 22 Sep 2010 12:49:53 +0000 (+0000) Subject: Add a new property "stopSquidOnException" to the SquidConfiguration bean. This proper... X-Git-Tag: 2.6~984 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc7f858152844c62f5a8394dbfa938c181107d12;p=sonarqube.git Add a new property "stopSquidOnException" to the SquidConfiguration bean. This property is pretty useful when running integration tests in order to fail the tests when something wrong happens. --- diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java b/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java index 30321f81504..b6d36d390f9 100644 --- a/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java +++ b/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java @@ -24,6 +24,7 @@ import java.nio.charset.Charset; public class SquidConfiguration { private Charset charset = Charset.defaultCharset(); + private boolean stopSquidOnException = false; public SquidConfiguration() { } @@ -36,4 +37,12 @@ public class SquidConfiguration { return charset; } + public void setStopSquidOnException(boolean stopSquidOnException) { + this.stopSquidOnException = stopSquidOnException; + } + + public boolean stopSquidOnException() { + return stopSquidOnException; + } + } \ No newline at end of file