Interface EnhancedTask
- All Superinterfaces:
Comparable<Task>,EnhancedPluginAdditions,ExtensionAware,Named,Task
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
Task.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 -
Method Summary
Modifier and TypeMethodDescriptionThe default output directory to use for this task if it outputs a directory.default Provider<RegularFile> The default output file to use for this task if it outputs a file.default Provider<RegularFile> The default output file to use for this task if it outputs a file.default EnhancedPlugin<? super Project> Deprecated.This method is public only due to the limitations imposed by Java 8.Gets a provider to the file for aToolto be used.default DirectoryPropertyGets the global caches to be used for this plugin.default DirectoryPropertyGets the local caches to be used for this plugin.Class<? extends EnhancedPlugin<? super Project>> The enhanced plugin type for this task.default DirectoryPropertyGets the working project directory to be used for this plugin.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gradle.api.plugins.ExtensionAware
getExtensionsMethods inherited from interface org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, 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, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Method Details
-
pluginType
Class<? extends EnhancedPlugin<? super Project>> pluginType()The enhanced plugin type for this task.- Returns:
- The plugin type
-
getPlugin
Deprecated.This method is public only due to the limitations imposed by Java 8. Do not use this. UseTask.getProject()->PluginAware.getPlugins()->PluginContainer.getPlugin(Class).Gets the enhanced plugin used by this task as defined inpluginType().- Returns:
- The enhanced plugin
-
globalCaches
Description copied from interface:EnhancedPluginAdditionsGets the global caches to be used for this plugin. These caches persist between projects and should be used to eliminate excess work done by projects that request the same data.
It is stored in
~/.gradle/caches/minecraftforge/plugin.- Specified by:
globalCachesin interfaceEnhancedPluginAdditions- Returns:
- The global caches
-
localCaches
Description copied from interface:EnhancedPluginAdditionsGets the local caches to be used for this plugin. Data done by tasks that should not be shared between projects should be stored here.
It is located in
project/build/minecraftforge/plugin.- Specified by:
localCachesin interfaceEnhancedPluginAdditions- Returns:
- The global caches
-
workingProjectDirectory
Description copied from interface:EnhancedPluginAdditionsGets the working project directory to be used for this plugin. This directory is either the
ProjectLayout.getProjectDirectory()of theProjector theBuildLayout.getRootDirectory()of theSettings. Attempting to call this when the plugin target is not either type will throw an exception.It is located in
project/build/minecraftforge/plugin.- Specified by:
workingProjectDirectoryin interfaceEnhancedPluginAdditions- Returns:
- The working project directory
-
getDefaultOutputDirectory
-
getDefaultOutputFile
The default output file to use for this task if it outputs a file. Uses the.jarextension.- Returns:
- A provider for the file
-
getDefaultOutputFile
The default output file to use for this task if it outputs a file.- Parameters:
ext- The extension to use for the file- Returns:
- A provider for the file
-