public abstract class AbstractTask extends org.gradle.api.DefaultTask implements SetupSources
| Constructor and Description |
|---|
AbstractTask(java.lang.String extension,
java.lang.Class<? extends AbstractSetupBuilder> setupType)
Constructor with indication to artifact result
Runs with the default SetupBuilder for dmg, msi ...
|
| Modifier and Type | Method and Description |
|---|---|
void |
action()
The action called from Gradle
|
abstract void |
build()
The platform depending build.
|
void |
copyTo(java.io.File target)
Copy all files of this task to the given target.
|
protected AbstractSetupBuilder |
getAbstractSetupBuilder()
Return the setupBuilder using the specified type
|
java.lang.String |
getClassifier()
Returns the classifier part of the installer, if any.
|
java.lang.String |
getDescription() |
java.lang.String |
getExtension()
Get the file extension.
|
protected org.gradle.api.internal.file.FileLookup |
getFileLookup() |
protected org.gradle.api.internal.file.FileResolver |
getFileResolver() |
protected org.gradle.internal.nativeplatform.filesystem.FileSystem |
getFileSystem() |
protected org.gradle.internal.reflect.Instantiator |
getInstantiator() |
org.gradle.api.internal.file.copy.CopySpecInternal |
getRootSpec() |
java.io.File |
getSetupFile()
The resulting application
|
org.gradle.api.file.FileTree |
getSetupSource()
The setup Sources
|
org.gradle.api.file.FileTree |
getSource()
Overridden for annotation.
|
java.lang.String |
getVersion()
Get the version of the task.
|
protected void |
processFiles(org.gradle.api.internal.file.CopyActionProcessingStreamAction action)
Handle all files of this task.
|
void |
setClassifier(java.lang.String classifier)
Set the classifier part of the installer.
|
void |
setExtension(java.lang.String extension)
Set the file extension of the installer.
|
void |
setVersion(java.lang.String version)
Set the version of the task
|
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActionClassLoaders, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiteachFile, eachFile, exclude, exclude, exclude, exclude, expand, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirMode, getDuplicatesStrategy, getExcludes, getFileMode, getFilteringCharset, getIncludeEmptyDirs, getIncludes, include, include, include, include, into, into, into, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setFilteringCharset, setIncludeEmptyDirs, setIncludes, withpublic AbstractTask(java.lang.String extension,
java.lang.Class<? extends AbstractSetupBuilder> setupType)
extension - of the setupsetupType - the class of the SetupBuilderpublic void action()
public void copyTo(java.io.File target)
target - the target directoryprotected void processFiles(org.gradle.api.internal.file.CopyActionProcessingStreamAction action)
action - the action that should be process for every file@Inject protected org.gradle.internal.reflect.Instantiator getInstantiator()
@Inject protected org.gradle.internal.nativeplatform.filesystem.FileSystem getFileSystem()
@Inject protected org.gradle.api.internal.file.FileResolver getFileResolver()
@Inject protected org.gradle.api.internal.file.FileLookup getFileLookup()
public abstract void build()
protected AbstractSetupBuilder getAbstractSetupBuilder()
public org.gradle.api.internal.file.copy.CopySpecInternal getRootSpec()
getRootSpec in interface org.gradle.api.internal.file.copy.CopySpecSource@InputFiles public org.gradle.api.file.FileTree getSource()
getSource in interface SetupSources@InputFiles public org.gradle.api.file.FileTree getSetupSource()
@OutputFile public java.io.File getSetupFile()
public java.lang.String getExtension()
public void setExtension(java.lang.String extension)
extension - the file extensionpublic java.lang.String getClassifier()
public void setClassifier(java.lang.String classifier)
classifier - The classifier. May be null.public java.lang.String getDescription()
getDescription in interface org.gradle.api.TaskgetDescription in class org.gradle.api.internal.AbstractTaskpublic java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - the version to set