Class 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
    public class PlayRun
    extends org.gradle.api.internal.ConventionTask
    Task to run a Play application.
    • Constructor Detail

      • PlayRun

        public PlayRun()
    • Method Detail

      • getForkOptions

        public BaseForkOptions getForkOptions()
        fork options for the running a Play application.
      • run

        public void run()
      • getHttpPort

        @Internal
        public int 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)
      • getApplicationJar

        public File getApplicationJar()
        The Play application jar to run.
      • setApplicationJar

        public void setApplicationJar​(File applicationJar)
      • getAssetsJar

        public File getAssetsJar()
        The assets jar to run with the Play application.
      • setAssetsJar

        public void setAssetsJar​(File assetsJar)
      • getAssetsDirs

        public Set<File> getAssetsDirs()
        The directories of the assets for the Play application (for live reload functionality).
      • setAssetsDirs

        public void setAssetsDirs​(Set<File> assetsDirs)
      • setRuntimeClasspath

        public void setRuntimeClasspath​(FileCollection runtimeClasspath)
      • setChangingClasspath

        public void setChangingClasspath​(FileCollection changingClasspath)
      • setPlayToolProvider

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

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