@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:43.739Z") @Stability(value=Experimental) public abstract class IgnoreStrategy extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
protected |
IgnoreStrategy() |
protected |
IgnoreStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IgnoreStrategy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
add(String pattern)
(experimental) Adds another pattern.
|
static DockerIgnoreStrategy |
docker(String absoluteRootPath,
List<String> patterns)
(experimental) Ignores file paths based on the [`.dockerignore specification`](https://docs.docker.com/engine/reference/builder/#dockerignore-file).
|
static IgnoreStrategy |
fromCopyOptions(CopyOptions options,
String absoluteRootPath)
(experimental) Creates an IgnoreStrategy based on the `ignoreMode` and `exclude` in a `CopyOptions`.
|
static GitIgnoreStrategy |
git(String absoluteRootPath,
List<String> patterns)
(experimental) Ignores file paths based on the [`.gitignore specification`](https://git-scm.com/docs/gitignore).
|
static GlobIgnoreStrategy |
glob(String absoluteRootPath,
List<String> patterns)
(experimental) Ignores file paths based on simple glob patterns.
|
abstract Boolean |
ignores(String absoluteFilePath)
(experimental) Determines whether a given file path should be ignored or not.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected IgnoreStrategy(software.amazon.jsii.JsiiObjectRef objRef)
protected IgnoreStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected IgnoreStrategy()
@Stability(value=Experimental) @NotNull public static DockerIgnoreStrategy docker(@NotNull String absoluteRootPath, @NotNull List<String> patterns)
absoluteRootPath - the absolute path to the root directory of the paths to be considered. This parameter is required.patterns - This parameter is required.@Stability(value=Experimental) @NotNull public static IgnoreStrategy fromCopyOptions(@NotNull CopyOptions options, @NotNull String absoluteRootPath)
options - the `CopyOptions` to create the `IgnoreStrategy` from. This parameter is required.absoluteRootPath - the absolute path to the root directory of the paths to be considered. This parameter is required.@Stability(value=Experimental) @NotNull public static GitIgnoreStrategy git(@NotNull String absoluteRootPath, @NotNull List<String> patterns)
absoluteRootPath - the absolute path to the root directory of the paths to be considered. This parameter is required.patterns - This parameter is required.@Stability(value=Experimental) @NotNull public static GlobIgnoreStrategy glob(@NotNull String absoluteRootPath, @NotNull List<String> patterns)
absoluteRootPath - the absolute path to the root directory of the paths to be considered. This parameter is required.patterns - This parameter is required.@Stability(value=Experimental)
public abstract void add(@NotNull
String pattern)
pattern - This parameter is required.@Stability(value=Experimental) @NotNull public abstract Boolean ignores(@NotNull String absoluteFilePath)
absoluteFilePath - absolute file path to be assessed against the pattern. This parameter is required.Copyright © 2021. All rights reserved.