aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-squid
diff options
context:
space:
mode:
authorfmallet <freddy.mallet@gmail.com>2010-09-22 12:49:53 +0000
committerfmallet <freddy.mallet@gmail.com>2010-09-22 12:49:53 +0000
commitdc7f858152844c62f5a8394dbfa938c181107d12 (patch)
tree1b1790adba29ceb035d9b5541e21c0a8e5abb720 /sonar-squid
parent9efe7e5d788f6a7d0de0bb3c2bc0cdf84496b021 (diff)
downloadsonarqube-dc7f858152844c62f5a8394dbfa938c181107d12.tar.gz
sonarqube-dc7f858152844c62f5a8394dbfa938c181107d12.zip
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.
Diffstat (limited to 'sonar-squid')
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java9
1 files changed, 9 insertions, 0 deletions
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