Package org.gradle.play.tasks
Class PlayRun
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.play.tasks.PlayRun
- All Implemented Interfaces:
Comparable<Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.IConventionAware
,org.gradle.api.internal.TaskInternal
,ExtensionAware
,Task
,org.gradle.util.Configurable<Task>
Task to run a Play application.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
Task.Namer
-
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe Play application jar to run.The directories of the assets for the Play application (for live reload functionality).The assets jar to run with the Play application.org.gradle.deployment.internal.DeploymentRegistry
fork options for the running a Play application.int
The HTTP port listened to by the Play application.The working directory.void
run()
void
setApplicationJar
(File applicationJar) void
setAssetsDirs
(Set<File> assetsDirs) void
setAssetsJar
(File assetsJar) void
setChangingClasspath
(FileCollection changingClasspath) void
setHttpPort
(int httpPort) void
setPlayToolProvider
(org.gradle.play.internal.toolchain.PlayToolProvider playToolProvider) void
setRuntimeClasspath
(FileCollection runtimeClasspath) Methods inherited from class org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMapping
Methods inherited from class org.gradle.api.DefaultTask
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
Methods inherited from class org.gradle.api.internal.AbstractTask
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
-
Constructor Details
-
PlayRun
public PlayRun()
-
-
Method Details
-
getForkOptions
fork options for the running a Play application. -
run
public void run() -
getHttpPort
The HTTP port listened to by the Play application. This port should be available. The Play application will fail to start if the port is already in use.- Returns:
- HTTP port
-
setHttpPort
public void setHttpPort(int httpPort) -
getWorkingDir
The working directory.- Since:
- 4.4
-
getApplicationJar
The Play application jar to run. -
setApplicationJar
-
getAssetsJar
The assets jar to run with the Play application. -
setAssetsJar
-
getAssetsDirs
The directories of the assets for the Play application (for live reload functionality). -
setAssetsDirs
-
setRuntimeClasspath
-
setChangingClasspath
-
setPlayToolProvider
public void setPlayToolProvider(org.gradle.play.internal.toolchain.PlayToolProvider playToolProvider) -
getDeploymentRegistry
@Inject public org.gradle.deployment.internal.DeploymentRegistry getDeploymentRegistry()
-