Class PrefixedPropertiesProvider

java.lang.Object
org.jenkinsci.gradle.plugins.jpi2.accmod.PrefixedPropertiesProvider

public class PrefixedPropertiesProvider extends Object
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 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 scanned
      prefix - 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