Package software.amazon.awscdk
Class GlobIgnoreStrategy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.IgnoreStrategy
software.amazon.awscdk.GlobIgnoreStrategy
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-04T09:06:16.286Z")
@Stability(Stable)
public class GlobIgnoreStrategy
extends IgnoreStrategy
Ignores file paths based on simple glob patterns.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; GlobIgnoreStrategy globIgnoreStrategy = new GlobIgnoreStrategy("absoluteRootPath", List.of("patterns"));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionGlobIgnoreStrategy
(String absoluteRootPath, List<String> patterns) protected
GlobIgnoreStrategy
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
GlobIgnoreStrategy
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.awscdk.IgnoreStrategy
docker, fromCopyOptions, git, glob
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
GlobIgnoreStrategy
protected GlobIgnoreStrategy(software.amazon.jsii.JsiiObjectRef objRef) -
GlobIgnoreStrategy
protected GlobIgnoreStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
GlobIgnoreStrategy
@Stability(Stable) public GlobIgnoreStrategy(@NotNull String absoluteRootPath, @NotNull List<String> patterns) - Parameters:
absoluteRootPath
- This parameter is required.patterns
- This parameter is required.
-
-
Method Details
-
add
Adds another pattern.- Specified by:
add
in classIgnoreStrategy
- Parameters:
pattern
- This parameter is required.
-
ignores
Determines whether a given file path should be ignored or not.- Specified by:
ignores
in classIgnoreStrategy
- Parameters:
absoluteFilePath
- absolute file path to be assessed against the pattern. This parameter is required.- Returns:
true
if the file should be ignored
-