@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.406Z") @Stability(value=Experimental) public class IgnoreFile extends FileBase
PROJEN_MARKER| Modifier | Constructor and Description |
|---|---|
protected |
IgnoreFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IgnoreFile(software.amazon.jsii.JsiiObjectRef objRef) |
|
IgnoreFile(Project project,
String filePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPatterns(String... patterns)
(experimental) Add ignore patterns.
|
void |
exclude(String... patterns)
(experimental) Ignore the files that match these patterns.
|
void |
include(String... patterns)
(experimental) Always include the specified file patterns.
|
void |
removePatterns(String... patterns)
(experimental) Removes patterns previously added from the ignore file.
|
protected String |
synthesizeContent(IResolver resolver)
(experimental) Implemented by derived classes and returns the contents of the file to emit.
|
getAbsolutePath, getExecutable, getPath, getReadonly, setExecutable, setReadonly, synthesizegetProject, postSynthesize, preSynthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected IgnoreFile(software.amazon.jsii.JsiiObjectRef objRef)
protected IgnoreFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public void addPatterns(@NotNull
String... patterns)
Files that match this pattern will be ignored. If the
pattern starts with a negation mark !, files that match will not be
ignored.
Comment lines (start with #) are ignored.
patterns - Ignore patterns. This parameter is required.@Stability(value=Experimental)
public void exclude(@NotNull
String... patterns)
patterns - The patterns to match. This parameter is required.@Stability(value=Experimental)
public void include(@NotNull
String... patterns)
patterns - Patterns to include in git commits. This parameter is required.@Stability(value=Experimental)
public void removePatterns(@NotNull
String... patterns)
If addPattern() is called after this, the pattern will be added again.
patterns - patters to remove. This parameter is required.@Stability(value=Experimental) @Nullable protected String synthesizeContent(@NotNull IResolver resolver)
synthesizeContent in class FileBaseresolver - This parameter is required.Copyright © 2021. All rights reserved.