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>`

      @Incubating
      @Deprecated
      public class PlayRun
      extends org.gradle.api.internal.ConventionTask

  Deprecated.
  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_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PlayRun()` | Deprecated.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `File` | `getApplicationJar()` | Deprecated. The Play application jar to run.
    `Set<File>` | `getAssetsDirs()` | Deprecated. The directories of the assets for the Play application (for live reload functionality).
    `File` | `getAssetsJar()` | Deprecated. The assets jar to run with the Play application.
    `FileCollection` | `getChangingClasspath()` | Deprecated. The changing classpath for the Play application.
    `org.gradle.deployment.internal.DeploymentRegistry` | `getDeploymentRegistry()` | Deprecated.
    `BaseForkOptions` | `getForkOptions()` | Deprecated. fork options for the running a Play application.
    `int` | `getHttpPort()` | Deprecated. The HTTP port listened to by the Play application.
    `FileCollection` | `getRuntimeClasspath()` | Deprecated. The runtime classpath for the Play application.
    `DirectoryProperty` | `getWorkingDir()` | Deprecated. The working directory.
    `void` | `run()` | Deprecated.
    `void` | `setApplicationJar​(File applicationJar)` | Deprecated.
    `void` | `setAssetsDirs​(Set<File> assetsDirs)` | Deprecated.
    `void` | `setAssetsJar​(File assetsJar)` | Deprecated.
    `void` | `setChangingClasspath​(FileCollection changingClasspath)` | Deprecated.
    `void` | `setHttpPort​(int httpPort)` | Deprecated.
    `void` | `setPlayToolProvider​(org.gradle.play.internal.toolchain.PlayToolProvider playToolProvider)` | Deprecated.
    `void` | `setRuntimeClasspath​(FileCollection runtimeClasspath)` | Deprecated.

    - ### Methods inherited from class org.gradle.api.internal.ConventionTask

      `conventionMapping, conventionMapping, getConventionMapping`

    - ### Methods inherited from class org.gradle.api.DefaultTask

      `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`

    - ### Methods inherited from class org.gradle.api.internal.AbstractTask

      `appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, replaceLogger, setImpliesSubProjects`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.gradle.api.Task

      `getConvention`

- - ### Constructor Detail

    - #### PlayRun

          public PlayRun()

      Deprecated.

  - ### Method Detail

    - #### getForkOptions

          public BaseForkOptions getForkOptions()

      Deprecated.
      fork options for the running a Play application.

    - #### run

          public void run()

      Deprecated.

    - #### getHttpPort

          @Internal
          public int getHttpPort()

      Deprecated.
      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)

      Deprecated.

    - #### getWorkingDir

          @Internal
          public DirectoryProperty getWorkingDir()

      Deprecated.
      The working directory.
      Since:
        4.4

    - #### getApplicationJar

          @Classpath
          public File getApplicationJar()

      Deprecated.
      The Play application jar to run.

    - #### setApplicationJar

          public void setApplicationJar​(File applicationJar)

      Deprecated.

    - #### getAssetsJar

          @Classpath
          public File getAssetsJar()

      Deprecated.
      The assets jar to run with the Play application.

    - #### setAssetsJar

          public void setAssetsJar​(File assetsJar)

      Deprecated.

    - #### getAssetsDirs

          @InputFiles
          @PathSensitive(RELATIVE)
          public Set<File> getAssetsDirs()

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

    - #### setAssetsDirs

          public void setAssetsDirs​(Set<File> assetsDirs)

      Deprecated.

    - #### getRuntimeClasspath

          @Classpath
          public FileCollection getRuntimeClasspath()

      Deprecated.
      The runtime classpath for the Play application.
      Since:
        5.0

    - #### setRuntimeClasspath

          public void setRuntimeClasspath​(FileCollection runtimeClasspath)

      Deprecated.

    - #### getChangingClasspath

          @Classpath
          public FileCollection getChangingClasspath()

      Deprecated.
      The changing classpath for the Play application.
      Since:
        5.0

    - #### setChangingClasspath

          public void setChangingClasspath​(FileCollection changingClasspath)

      Deprecated.

    - #### setPlayToolProvider

          public void setPlayToolProvider​(org.gradle.play.internal.toolchain.PlayToolProvider playToolProvider)

      Deprecated.

    - #### getDeploymentRegistry

          @Inject
          public org.gradle.deployment.internal.DeploymentRegistry getDeploymentRegistry()

      Deprecated.