api / org.gradle.play.tasks / PlayRun

PlayRun

@Incubating open class PlayRun : ConventionTask

Task to run a Play application.

Constructors

<init>

PlayRun()

Task to run a Play application.

Functions

getApplicationJar

open fun getApplicationJar(): File

The Play application jar to run.

getAssetsDirs

open fun getAssetsDirs(): MutableSet<File>

The directories of the assets for the Play application (for live reload functionality).

getAssetsJar

open fun getAssetsJar(): File

The assets jar to run with the Play application.

getDeploymentRegistry

open fun getDeploymentRegistry(): DeploymentRegistry

getForkOptions

open fun getForkOptions(): BaseForkOptions

fork options for the running a Play application.

getHttpPort

open fun getHttpPort(): Int

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.

getWorkingDir

open fun getWorkingDir(): DirectoryProperty

The working directory.

run

open fun run(): Unit

setApplicationJar

open fun setApplicationJar(applicationJar: File): Unit

setAssetsDirs

open fun setAssetsDirs(assetsDirs: MutableSet<File>): Unit

setAssetsJar

open fun setAssetsJar(assetsJar: File): Unit

setChangingClasspath

open fun setChangingClasspath(changingClasspath: FileCollection): Unit

setHttpPort

open fun setHttpPort(httpPort: Int): Unit

setPlayToolProvider

open fun setPlayToolProvider(playToolProvider: PlayToolProvider): Unit

setRuntimeClasspath

open fun setRuntimeClasspath(runtimeClasspath: FileCollection): Unit