public interface BootArchive extends Task
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Modifier and Type | Method and Description |
---|---|
void |
classpath(Object... classpath)
Adds files to the classpath to include in the archive.
|
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. |
Property<String> |
getMainClass()
Returns the fully-qualified name of the application's main class.
|
void |
launchScript()
Configures the archive to have a prepended launch script.
|
void |
launchScript(Action<LaunchScriptConfiguration> action)
Configures the archive to have a prepended launch script, customizing its
configuration using the given
action . |
void |
requiresUnpack(Spec<FileTreeElement> spec)
Adds a spec that identifies files that must be unpacked from the archive when it is
launched.
|
void |
requiresUnpack(String... patterns)
Adds Ant-style patterns that identify files that must be unpacked from the archive
when it is launched.
|
void |
setClasspath(FileCollection classpath)
Sets the classpath to include in the archive.
|
void |
setClasspath(Object classpath)
Sets the classpath to include in the archive.
|
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, 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, notCompatibleWithConfigurationCache, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
compareTo
getExtensions
@Input Property<String> getMainClass()
void requiresUnpack(String... patterns)
patterns
- the patternsvoid requiresUnpack(Spec<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(Action<LaunchScriptConfiguration> action)
action
.action
- the action to apply@Optional @Classpath FileCollection getClasspath()
void classpath(Object... classpath)
classpath
is evaluated as per Project.files(Object...)
.classpath
- the additions to the classpathvoid setClasspath(Object classpath)
classpath
is
evaluated as per Project.files(Object...)
.classpath
- the classpathvoid setClasspath(FileCollection classpath)
classpath
- the classpath