Modifier and Type | Method and Description |
---|---|
void |
classpath(java.lang.Object... classpath)
Adds files to the classpath to include in the archive.
|
org.gradle.api.file.FileCollection |
getClasspath()
Returns the classpath that will be included in the archive.
|
LaunchScriptConfiguration |
getLaunchScript()
Returns the
LaunchScriptConfiguration that will control the script that is
prepended to the archive. |
org.gradle.api.provider.Property<java.lang.String> |
getMainClass()
Returns the fully-qualified name of the application's main class.
|
java.lang.String |
getMainClassName()
Deprecated.
since 2.4.0 for removal in 2.6.0 in favor of
getMainClass() . |
void |
launchScript()
Configures the archive to have a prepended launch script.
|
void |
launchScript(org.gradle.api.Action<LaunchScriptConfiguration> action)
Configures the archive to have a prepended launch script, customizing its
configuration using the given
action . |
void |
requiresUnpack(org.gradle.api.specs.Spec<org.gradle.api.file.FileTreeElement> spec)
Adds a spec that identifies files that must be unpacked from the archive when it is
launched.
|
void |
requiresUnpack(java.lang.String... patterns)
Adds Ant-style patterns that identify files that must be unpacked from the archive
when it is launched.
|
void |
setClasspath(org.gradle.api.file.FileCollection classpath)
Sets the classpath to include in the archive.
|
void |
setClasspath(java.lang.Object classpath)
Sets the classpath to include in the archive.
|
void |
setMainClassName(java.lang.String mainClassName)
Deprecated.
since 2.4.0 for removal in 2.6.0 in favor of
getMainClass() and
Property.set(Object) |
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, 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, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
@Input org.gradle.api.provider.Property<java.lang.String> getMainClass()
@Deprecated @ReplacedBy(value="mainClass") java.lang.String getMainClassName()
getMainClass()
.@Deprecated void setMainClassName(java.lang.String mainClassName)
getMainClass()
and
Property.set(Object)
mainClassName
- the fully-qualified name of the application's main classvoid requiresUnpack(java.lang.String... patterns)
patterns
- the patternsvoid requiresUnpack(org.gradle.api.specs.Spec<org.gradle.api.file.FileTreeElement> spec)
spec
- the spec@Optional LaunchScriptConfiguration getLaunchScript()
LaunchScriptConfiguration
that will control the script that is
prepended to the archive.null
if the launch script has
not been configured.void launchScript()
void launchScript(org.gradle.api.Action<LaunchScriptConfiguration> action)
action
.action
- the action to apply@Optional @Classpath org.gradle.api.file.FileCollection getClasspath()
void classpath(java.lang.Object... classpath)
classpath
is evaluated as per Project.files(Object...)
.classpath
- the additions to the classpathvoid setClasspath(java.lang.Object classpath)
classpath
is
evaluated as per Project.files(Object...)
.classpath
- the classpathvoid setClasspath(org.gradle.api.file.FileCollection classpath)
classpath
- the classpath