@DisableCachingByDefault(because="This task runs an external tool that builds an OCI container. It needs to perform its own up-to-date checks.") public abstract class BuildRockcraftTask extends AbstractRockcraftTask
| Constructor and Description |
|---|
BuildRockcraftTask(com.canonical.rockcraft.builder.RockcraftOptions options)
Constructs BuildRockcraftTask
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.gradle.jvm.toolchain.JavaToolchainService |
getToolchainService() |
void |
packRock()
The task action
|
getOptionscompareTo, 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, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceacceptServiceReferences, appendParallelSafeAction, doNotTrackState, doNotTrackStateIf, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonsNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions, setImpliesSubProjects@Inject public BuildRockcraftTask(com.canonical.rockcraft.builder.RockcraftOptions options)
options - - rockcraft options@Inject protected abstract org.gradle.jvm.toolchain.JavaToolchainService getToolchainService()
public void packRock()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - - IO error while writing rockcraft.yamljava.lang.InterruptedException - - rockcraft process was aborted