Class SimpleRelocator
java.lang.Object
org.apache.maven.plugins.shade.relocation.SimpleRelocator
- All Implemented Interfaces:
Relocator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Stringprivate final booleanprivate static final PatternMatch dot, slash or space at end of stringprivate static final PatternMatch 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 Stringprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyToSourceContent(String sourceContent) booleancanRelocateClass(String clazz) booleancanRelocatePath(String path) private booleanisExcluded(String path) private booleanisIncluded(String path) normalizePatterns(Collection<String> patterns) relocateClass(String clazz) relocatePath(String path) private StringshadeSourceWithExcludes(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:
canRelocatePathin interfaceRelocator
-
canRelocateClass
- Specified by:
canRelocateClassin interfaceRelocator
-
relocatePath
- Specified by:
relocatePathin interfaceRelocator
-
relocateClass
- Specified by:
relocateClassin interfaceRelocator
-
applyToSourceContent
- Specified by:
applyToSourceContentin interfaceRelocator
-
shadeSourceWithExcludes
-