Interface NormalizationProvider.RuntimeClasspathNormalization
- Enclosing interface:
NormalizationProvider
public static interface NormalizationProvider.RuntimeClasspathNormalization
Allows configuring the runtime classpath normalization.
Supports ANT-style patterns:
* matches zero or more characters ? matches one character ** matches zero or more characters across directory levels
- Since:
- 1.15
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A common location to store properties files is theMETA-INF
directory. -
Method Summary
Modifier and TypeMethodDescriptionaddIgnoredFiles
(String... ignoredFiles) Configures the runtime classpath normalization to ignore files.addIgnoredFiles
(List<String> ignoredFiles) Configures the runtime classpath normalization to ignore files.addPropertiesNormalization
(String path, String... ignoredProperties) Configures the runtime classpath normalization to ignore properties from specific property files.addPropertiesNormalization
(String path, List<String> ignoredProperties) Configures the runtime classpath normalization to ignore properties from specific property files.Allows configuring the normalization of files matchingMETA-INF/**/*.properties
.setIgnoredFiles
(String... ignoredFiles) Configures the runtime classpath normalization to ignore files.setIgnoredFiles
(List<String> ignoredFiles) Configures the runtime classpath normalization to ignore files.
-
Method Details
-
setIgnoredFiles
Configures the runtime classpath normalization to ignore files. Supports ANT-style file paths. This operation will override any previous configuration.- Parameters:
ignoredFiles
- the files to ignore- Since:
- 1.15
-
setIgnoredFiles
Configures the runtime classpath normalization to ignore files. Supports ANT-style file paths. This operation will override any previous configuration.- Parameters:
ignoredFiles
- the files to ignore- Since:
- 1.15
-
addIgnoredFiles
Configures the runtime classpath normalization to ignore files. Supports ANT-style file paths. This operation is additive, i.e. it will add the ignored files to the previously configured files including the corresponding configuration in POM.- Parameters:
ignoredFiles
- the files to ignore- Since:
- 1.15
-
addIgnoredFiles
Configures the runtime classpath normalization to ignore files. Supports ANT-style file paths. This operation is additive, i.e. it will add the ignored files to the previously configured files.- Parameters:
ignoredFiles
- the files to ignore- Since:
- 1.15
-
addPropertiesNormalization
NormalizationProvider.RuntimeClasspathNormalization addPropertiesNormalization(String path, List<String> ignoredProperties) Configures the runtime classpath normalization to ignore properties from specific property files. ANT-style patterns can be used to match relevant property files.- Parameters:
path
- the path of the properties fileignoredProperties
- the properties to ignore- Since:
- 1.15
-
addPropertiesNormalization
NormalizationProvider.RuntimeClasspathNormalization addPropertiesNormalization(String path, String... ignoredProperties) Configures the runtime classpath normalization to ignore properties from specific property files. ANT-style patterns can be used to match relevant property files.- Parameters:
path
- the path of the properties fileignoredProperties
- the properties to ignore- Since:
- 1.15
-
configureMetaInf
NormalizationProvider.RuntimeClasspathNormalization configureMetaInf(Consumer<NormalizationProvider.RuntimeClasspathNormalization.MetaInf> action) Allows configuring the normalization of files matchingMETA-INF/**/*.properties
.- Parameters:
action
- an action to configure the normalization- Since:
- 1.15
-