diff options
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/config/DefaultConfiguration.java')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/config/DefaultConfiguration.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/config/DefaultConfiguration.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/config/DefaultConfiguration.java index dfdfa2f9f1d..27f11deacfd 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/config/DefaultConfiguration.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/config/DefaultConfiguration.java @@ -47,12 +47,14 @@ public abstract class DefaultConfiguration implements Configuration { private final Encryption encryption; private final GlobalAnalysisMode mode; private final Map<String, String> properties; + private final Map<String, String> originalProperties; public DefaultConfiguration(PropertyDefinitions propertyDefinitions, Encryption encryption, GlobalAnalysisMode mode, Map<String, String> props) { this.definitions = requireNonNull(propertyDefinitions); this.encryption = encryption; this.mode = mode; this.properties = unmodifiableMapWithTrimmedValues(definitions, props); + this.originalProperties = Collections.unmodifiableMap(props); } protected static Map<String, String> unmodifiableMapWithTrimmedValues(PropertyDefinitions definitions, Map<String, String> props) { @@ -80,6 +82,10 @@ public abstract class DefaultConfiguration implements Configuration { return properties; } + public Map<String, String> getOriginalProperties() { + return originalProperties; + } + @Override public boolean hasKey(String key) { return properties.containsKey(key); |