Class PrefixedPropertiesProvider
java.lang.Object
org.jenkinsci.gradle.plugins.jpi2.accmod.PrefixedPropertiesProvider
Extracts Gradle project properties that share a common prefix and strips that prefix,
making them available as a plain map to the access-modifier checker.
-
Method Summary
Modifier and TypeMethodDescriptiongradlePropertiesPrefixedBy(org.gradle.api.Project project, String prefix)
-
Method Details
-
gradlePropertiesPrefixedBy
public static org.gradle.api.provider.Provider<Map<String,String>> gradlePropertiesPrefixedBy(org.gradle.api.Project project, String prefix) - Parameters:
project- the Gradle project whose properties are scannedprefix- only properties with this prefix are included; the prefix is stripped from the keys- Returns:
- a provider with a map of properties with the given prefix, with the prefix stripped from the keys
-