public class BootRun
extends org.gradle.api.tasks.JavaExec
JavaExec
task for running a Spring Boot application.Constructor and Description |
---|
BootRun() |
Modifier and Type | Method and Description |
---|---|
void |
exec() |
boolean |
isOptimizedLaunch()
Returns
true if the JVM's launch should be optimized, otherwise
false . |
void |
setOptimizedLaunch(boolean optimizedLaunch)
Sets whether the JVM's launch should be optimized.
|
void |
sourceResources(org.gradle.api.tasks.SourceSet sourceSet)
Adds the
source directories of the given
sourceSet's resources to the start of the
classpath in place of the output's
resources directory . |
args, args, bootstrapClasspath, classpath, copyTo, copyTo, debugOptions, environment, environment, executable, getAllJvmArgs, getArgs, getArgumentProviders, getBootstrapClasspath, getClasspath, getCommandLine, getDebug, getDebugOptions, getDefaultCharacterEncoding, getDslExecActionFactory, getEnableAssertions, getEnvironment, getErrorOutput, getExecActionFactory, getExecutable, getExecutionResult, getJavaVersion, getJvmArgs, getJvmArgumentProviders, getMain, getMaxHeapSize, getMinHeapSize, getObjectFactory, getStandardInput, getStandardOutput, getSystemProperties, getWorkingDir, isIgnoreExitValue, jvmArgs, jvmArgs, setAllJvmArgs, setAllJvmArgs, setArgs, setArgs, setArgsString, setBootstrapClasspath, setClasspath, setDebug, setDefaultCharacterEncoding, setEnableAssertions, setEnvironment, setErrorOutput, setExecutable, setExecutable, setIgnoreExitValue, setJvmArgs, setJvmArgs, setMain, setMaxHeapSize, setMinHeapSize, setStandardInput, setStandardOutput, setSystemProperties, setWorkingDir, setWorkingDir, systemProperties, systemProperty, workingDir
conventionMapping, conventionMapping, getConventionMapping
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString, usesService
@Input public boolean isOptimizedLaunch()
true
if the JVM's launch should be optimized, otherwise
false
. Defaults to true
.public void setOptimizedLaunch(boolean optimizedLaunch)
true
.optimizedLaunch
- true
if the JVM's launch should be optimised,
otherwise false
public void sourceResources(org.gradle.api.tasks.SourceSet sourceSet)
source directories
of the given
sourceSet's
resources
to the start of the
classpath in place of the output's
resources directory
.sourceSet
- the source setpublic void exec()
exec
in class org.gradle.api.tasks.JavaExec