public interface BootArchive extends Task
Task.Namer
TASK_ACTION, 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, if any,
that is prepended to the archive. |
String |
getMainClass()
Returns the main class of the application.
|
boolean |
isExcludeDevtools()
Returns
true if the Devtools jar should be excluded, otherwise
false . |
void |
launchScript(Action<LaunchScriptConfiguration> action)
Applies the given
action to the LaunchScriptConfiguration of this
archive. |
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 |
setExcludeDevtools(boolean excludeDevtools)
Sets whether or not the Devtools jar should be excluded.
|
void |
setMainClass(String mainClass)
Sets the main class of the application.
|
configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, hasProperty, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter
compareTo
getExtensions
@Input @Optional String getMainClass()
void setMainClass(String mainClass)
mainClass
- the main class of the applicationvoid requiresUnpack(String... patterns)
patterns
- the patternsvoid requiresUnpack(Spec<FileTreeElement> spec)
spec
- the spec@Input LaunchScriptConfiguration getLaunchScript()
LaunchScriptConfiguration
that will control the script, if any,
that is prepended to the archive.void launchScript(Action<LaunchScriptConfiguration> action)
action
to the LaunchScriptConfiguration
of this
archive.action
- the action to apply@Optional @Classpath FileCollection getClasspath()
void classpath(Object... classpath)
classpath
are evaluated as per Project.files(Object...)
.classpath
- the additions to the classpath@Input boolean isExcludeDevtools()
true
if the Devtools jar should be excluded, otherwise
false
.true
if the Devtools jar should be excluded, or false
if
notvoid setExcludeDevtools(boolean excludeDevtools)
excludeDevtools
- true
if the Devtools jar should be excluded, or
false
if not