Interface EnhancedTask<P extends EnhancedProblems>
- Type Parameters:
P- The type of enhanced problems
- All Superinterfaces:
Comparable<org.gradle.api.Task>,EnhancedPluginAdditions,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Named,org.gradle.api.Task
- All Known Implementing Classes:
ToolExecBase
-
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 -
Method Summary
Modifier and TypeMethodDescriptiondefault org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> The default output log file to use for this task.default org.gradle.api.provider.Provider<org.gradle.api.file.Directory> The default output directory to use for this task if it outputs a directory.default org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> The default output file to use for this task if it outputs a file.default org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> The default output file to use for this task if it outputs a file.default org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> getOutputFile(String fileName) A file with the specified name in the default output directory.default Tool.ResolvedGets a provider to the file for aToolto be used.default org.gradle.api.file.DirectoryPropertyGets the global caches to be used for this plugin.default org.gradle.api.file.DirectoryPropertyGets the local caches to be used for this plugin.Class<? extends EnhancedPlugin<? super org.gradle.api.Project>> The enhanced plugin type for this task.The enhanced problems type for this task.default org.gradle.api.file.DirectoryPropertyGets the root project directory to be used for this plugin.default org.gradle.api.file.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, 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 org.gradle.api.Project>> pluginType()The enhanced plugin type for this task.- Returns:
- The plugin type
-
problemsType
-
globalCaches
default org.gradle.api.file.DirectoryProperty 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
default org.gradle.api.file.DirectoryProperty 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
-
rootProjectDirectory
default org.gradle.api.file.DirectoryProperty rootProjectDirectory()Description copied from interface:EnhancedPluginAdditionsGets the root project directory to be used for this plugin.
This directory is either the
ProjectLayout.getProjectDirectory()ofProject.getRootProject()or theBuildLayout.getRootDirectory()of theSettings. Attempting to call this when the plugin target is neither type will throw an exception.- Specified by:
rootProjectDirectoryin interfaceEnhancedPluginAdditions- Returns:
- The root project directory
-
workingProjectDirectory
default org.gradle.api.file.DirectoryProperty 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 neither type will throw an exception.- Specified by:
workingProjectDirectoryin interfaceEnhancedPluginAdditions- Returns:
- The working project directory
-
getDefaultOutputDirectory
@Internal default org.gradle.api.provider.Provider<org.gradle.api.file.Directory> getDefaultOutputDirectory()The default output directory to use for this task if it outputs a directory.- Returns:
- A provider for the directory
-
getDefaultOutputFile
@Internal default org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> 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
@Internal default org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> getDefaultOutputFile(String ext) 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
-
getDefaultLogFile
@Internal default org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> getDefaultLogFile()The default output log file to use for this task.- Returns:
- A provider for the file
-
getOutputFile
@Internal default org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> getOutputFile(String fileName) A file with the specified name in the default output directory.- Parameters:
fileName- The name of the output file- Returns:
- A provider for the file
-