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

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

        public void setApplicationJar​(File applicationJar)
      • getAssetsJar

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

        public void setAssetsJar​(File assetsJar)
      • setAssetsDirs

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

        @Classpath
        public FileCollection getRuntimeClasspath()
        The runtime classpath for the Play application.
        Since:
        5.0
      • setRuntimeClasspath

        public void setRuntimeClasspath​(FileCollection runtimeClasspath)
      • getChangingClasspath

        @Classpath
        public FileCollection getChangingClasspath()
        The changing classpath for the Play application.
        Since:
        5.0
      • 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()