public class ResolveMainClassName
extends org.gradle.api.DefaultTask
Task
for resolving the name of the application's main class.Constructor and Description |
---|
ResolveMainClassName()
Creates a new instance of the
ResolveMainClassName task. |
Modifier and Type | Method and Description |
---|---|
org.gradle.api.file.FileCollection |
getClasspath()
Returns the classpath that the task will examine when resolving the main class
name.
|
org.gradle.api.provider.Property<java.lang.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.
|
org.gradle.api.file.RegularFileProperty |
getOutputFile()
Returns the property for the task's output file that will contain the name of the
main class.
|
void |
setClasspath(org.gradle.api.file.FileCollection 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, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects, setLoggerMessageRewriter
public ResolveMainClassName()
ResolveMainClassName
task.@Classpath public org.gradle.api.file.FileCollection getClasspath()
public void setClasspath(org.gradle.api.file.FileCollection classpath)
classpath
- the classpath@OutputFile public org.gradle.api.file.RegularFileProperty getOutputFile()
@Input @Optional public org.gradle.api.provider.Property<java.lang.String> getConfiguredMainClassName()