Class SimpleRelocator
java.lang.Object
org.apache.maven.plugins.shade.relocation.SimpleRelocator
- All Implemented Interfaces:
Relocator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final String
private final boolean
private static final Pattern
Match dot, slash or space at end of stringprivate static final Pattern
Match certain Java keywords + space beginning of Javadoc link + optional line breaks and continuations with '*' (opening curly brace / opening parenthesis / comma / equals / semicolon) + space (closing curly brace / closing multi-line comment) + space at end of stringprivate final String
private final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyToSourceContent
(String sourceContent) boolean
canRelocateClass
(String clazz) boolean
canRelocatePath
(String path) private boolean
isExcluded
(String path) private boolean
isIncluded
(String path) normalizePatterns
(Collection<String> patterns) relocateClass
(String clazz) relocatePath
(String path) private String
shadeSourceWithExcludes
(String sourceContent, String patternFrom, String patternTo, Set<String> excludedPatterns)
-
Field Details
-
RX_ENDS_WITH_DOT_SLASH_SPACE
Match dot, slash or space at end of string -
RX_ENDS_WITH_JAVA_KEYWORD
Match- certain Java keywords + space
- beginning of Javadoc link + optional line breaks and continuations with '*'
- (opening curly brace / opening parenthesis / comma / equals / semicolon) + space
- (closing curly brace / closing multi-line comment) + space
-
pattern
-
pathPattern
-
shadedPattern
-
shadedPathPattern
-
includes
-
excludes
-
sourcePackageExcludes
-
sourcePathExcludes
-
rawString
private final boolean rawString
-
-
Constructor Details
-
SimpleRelocator
-
SimpleRelocator
-
-
Method Details
-
normalizePatterns
-
isIncluded
-
isExcluded
-
canRelocatePath
- Specified by:
canRelocatePath
in interfaceRelocator
-
canRelocateClass
- Specified by:
canRelocateClass
in interfaceRelocator
-
relocatePath
- Specified by:
relocatePath
in interfaceRelocator
-
relocateClass
- Specified by:
relocateClass
in interfaceRelocator
-
applyToSourceContent
- Specified by:
applyToSourceContent
in interfaceRelocator
-
shadeSourceWithExcludes
-