Class FingerprintingEditor
java.lang.Object
io.micronaut.gradle.docker.editor.FingerprintingEditor
- All Implemented Interfaces:
Editor
An implementation of editor which computes a fingerprint
for Gradle input snapshotting.
-
Constructor Summary
ConstructorDescriptionFingerprintingEditor
(org.gradle.api.model.ObjectFactory objects, List<String> fingerprint) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Restricts edition to lines after the given line.void
Restricts edition to lines before the given line.void
Inserts the provided lines after the current lower bound.void
Replaces lines matching the current lower and upper bounds with the provided replacement.void
Replaces lines matching the current lower and upper bounds with the replacement, if they match the line pattern.void
replaceRegex
(String regex, String replacement) Replaces strings matching the current lower and upper bounds with the replacement, if they match the line pattern.
-
Constructor Details
-
FingerprintingEditor
-
-
Method Details
-
before
Description copied from interface:Editor
Restricts edition to lines before the given line. -
after
Description copied from interface:Editor
Restricts edition to lines after the given line. -
replace
Description copied from interface:Editor
Replaces lines matching the current lower and upper bounds with the provided replacement. -
replace
Description copied from interface:Editor
Replaces lines matching the current lower and upper bounds with the replacement, if they match the line pattern. -
replaceRegex
Description copied from interface:Editor
Replaces strings matching the current lower and upper bounds with the replacement, if they match the line pattern.- Specified by:
replaceRegex
in interfaceEditor
- Parameters:
regex
- the regex to look forreplacement
- the replacement
-
insert
Description copied from interface:Editor
Inserts the provided lines after the current lower bound. -
getFingerprint
-