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, getEnableAssertions, getEnvironment, getErrorOutput, getExecActionFactory, getExecutable, getExecutionResult, getJavaVersion, getJvmArgs, getJvmArgumentProviders, getMain, getMainClass, getMainModule, getMaxHeapSize, getMinHeapSize, getModularity, getObjectFactory, getProviderFactory, 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
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, replaceLogger, setImpliesSubProjects
@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