public class DockerContextTask
extends org.gradle.api.DefaultTask
| Constructor and Description |
|---|
DockerContextTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateDockerContext() |
org.gradle.api.file.FileCollection |
getInputFiles() |
JibExtension |
getJib()
This will call the property
"jib" so that it is the same name as the extension. |
java.lang.String |
getOutputDirectory()
The output directory to check for task up-to-date.
|
java.lang.String |
getTargetDir()
Returns the output directory for the Docker context.
|
void |
setTargetDir(java.lang.String targetDir)
The output directory can be overriden with the
--jibTargetDir command line option. |
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString@Nullable public JibExtension getJib()
"jib" so that it is the same name as the extension. This
way, the user would see error messages for missing configuration with the prefix jib..JibExtension.@InputFiles public org.gradle.api.file.FileCollection getInputFiles()
classes task.@OutputDirectory public java.lang.String getOutputDirectory()
@Input public java.lang.String getTargetDir()
build/jib-docker-context.public void setTargetDir(java.lang.String targetDir)
--jibTargetDir command line option.targetDir - the output directory.public void generateDockerContext()