Package net.neoforged.gradleutils.tasks
Class ExtractActionsWorkflowsTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
net.neoforged.gradleutils.tasks.CIConfigExtractionTask
net.neoforged.gradleutils.tasks.ExtractActionsWorkflowsTask
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.Named,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
@DisableCachingByDefault(because="Task deletes its output directory")
public abstract class ExtractActionsWorkflowsTask
extends CIConfigExtractionTask
Task to extract the GitHub Action workflows from the included template zip file.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidextractZip(String fileZip, File destDir) Extracts the .github-workflows.zip file to our target directory.booleanbooleanvoidsetWithJCC(boolean withJCC) voidsetWithPRPublishing(boolean withPRPublishing) Methods inherited from class net.neoforged.gradleutils.tasks.CIConfigExtractionTask
determineJDKVersion, findCommonPrefix, getDeleteExisting, getDestination, newFile, run, setDeleteExistingMethods inherited from class org.gradle.api.DefaultTask
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, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, 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, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, notCompatibleWithConfigurationCache
-
Constructor Details
-
ExtractActionsWorkflowsTask
public ExtractActionsWorkflowsTask()
-
-
Method Details
-
extractZip
Extracts the .github-workflows.zip file to our target directory.- Specified by:
extractZipin classCIConfigExtractionTask- Parameters:
fileZip- The teamcity zip file.destDir- The target directory (generally the project directory), where the .github-workflows.zip file will be extracted.- Throws:
Exception
-
getWithPRPublishing
@Input public boolean getWithPRPublishing() -
getWithJCC
@Input public boolean getWithJCC() -
setWithPRPublishing
public void setWithPRPublishing(boolean withPRPublishing) -
setWithJCC
public void setWithJCC(boolean withJCC)
-