@DisableCachingByDefault(because="Not worth caching") public class ResolveMainClassName extends DefaultTask
Task
for resolving the name of the application's main class.Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
ResolveMainClassName()
Creates a new instance of the
ResolveMainClassName task. |
Modifier and Type | Method and Description |
---|---|
FileCollection |
getClasspath()
Returns the classpath that the task will examine when resolving the main class
name.
|
Property<String> |
getConfiguredMainClassName()
Returns the property for the explicitly configured main class name that should be
used in favor of resolving the main class name from the classpath.
|
RegularFileProperty |
getOutputFile()
Returns the property for the task's output file that will contain the name of the
main class.
|
void |
setClasspath(FileCollection classpath)
Sets the classpath that the task will examine when resolving the main class name.
|
void |
setClasspath(Object classpath)
Sets the classpath that the task will examine when resolving the main class name.
|
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, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
public ResolveMainClassName()
ResolveMainClassName
task.@Classpath public FileCollection getClasspath()
public void setClasspath(FileCollection classpath)
classpath
- the classpathpublic void setClasspath(Object classpath)
classpath
is evaluated as per Project.files(Object...)
.classpath
- the classpath@OutputFile public RegularFileProperty getOutputFile()