public class BuildTarTask extends org.gradle.api.DefaultTask implements JibTask
| Constructor and Description |
|---|
BuildTarTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildTar()
Task Action, builds an image to tar file.
|
org.gradle.api.file.FileCollection |
getInputFiles()
Returns a collection of all the files that jib includes in the image.
|
JibExtension |
getJib()
This will call the property
"jib" so that it is the same name as the extension. |
java.lang.String |
getOutputFile()
The output file to check for task up-to-date.
|
BuildTarTask |
setJibExtension(JibExtension jibExtension)
Sets the task's
JibExtension. |
void |
setTargetImage(java.lang.String targetImage)
The target image can be overridden with the
--image command line option. |
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceappendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, replaceLogger, setImpliesSubProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService@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.public void setTargetImage(java.lang.String targetImage)
--image command line option.targetImage - the name of the 'to' image.@InputFiles public org.gradle.api.file.FileCollection getInputFiles()
@OutputFile public java.lang.String getOutputFile()
public void buildTar()
throws com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException,
java.io.IOException,
com.google.cloud.tools.jib.api.CacheDirectoryCreationException,
com.google.cloud.tools.jib.plugins.common.MainClassInferenceException,
com.google.cloud.tools.jib.plugins.common.globalconfig.InvalidGlobalConfigException
java.io.IOException - if an error occurs creating the jib runnercom.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException - if an error occurs while executing build stepscom.google.cloud.tools.jib.api.CacheDirectoryCreationException - if a new cache directory could not be createdcom.google.cloud.tools.jib.plugins.common.MainClassInferenceException - if a main class could not be foundcom.google.cloud.tools.jib.plugins.common.globalconfig.InvalidGlobalConfigException - if the global config file is invalidpublic BuildTarTask setJibExtension(JibExtension jibExtension)
JibTaskJibExtension.setJibExtension in interface JibTaskjibExtension - the JibExtension