public class SkaffoldFilesOutput extends Object
build consists of build definitions. Changes in these files/directories indicate that
the project structure may have changed, so Skaffold will refresh the file watch list when this
happens.
inputs consist of source/resource files/directories. Skaffold will trigger a rebuild
when changes are detected in these files.
ignore consists of files/directories that the Skaffold file watcher should not watch.
Example:
{
"build": [
"buildFile1",
"buildFile2"
],
"inputs": [
"src/main/java/",
"src/main/resources/"
],
"ignore": [
"pathToIgnore"
]
}
| Constructor and Description |
|---|
SkaffoldFilesOutput()
Creates an empty
SkaffoldFilesOutput. |
SkaffoldFilesOutput(String json)
Creates a
SkaffoldFilesOutput from a JSON string. |
| Modifier and Type | Method and Description |
|---|---|
void |
addBuild(Path build)
Adds a build file/directory.
|
void |
addIgnore(Path ignoreFile)
Adds an ignored file/directory.
|
void |
addInput(Path inputFile)
Adds an input file/directory.
|
List<String> |
getBuild() |
List<String> |
getIgnore() |
List<String> |
getInputs() |
String |
getJsonString()
Gets the added files in JSON format.
|
public SkaffoldFilesOutput()
SkaffoldFilesOutput.public SkaffoldFilesOutput(String json) throws IOException
SkaffoldFilesOutput from a JSON string.json - the JSON stringIOException - if reading the JSON string failspublic void addBuild(Path build)
build - the path to the file/directorypublic void addInput(Path inputFile)
inputFile - the path to the file/directorypublic void addIgnore(Path ignoreFile)
ignoreFile - the path to the file/directorypublic String getJsonString() throws IOException
IOException - if writing out the JSON failsCopyright © 2019. All rights reserved.