api / org.gradle.play.tasks / JavaScriptMinify

JavaScriptMinify

@Incubating open class JavaScriptMinify : SourceTask

Task to minify JavaScript assets.

Constructors

<init>

JavaScriptMinify()

Functions

getDestinationDir

open fun getDestinationDir(): File

Returns the output directory that processed JavaScript is written to.

getForkOptions

open fun getForkOptions(): BaseForkOptions

The fork options to be applied to the JavaScript compiler.

getToolChain

open fun getToolChain(): PlayToolChain

Returns the tool chain that will be used to compile the JavaScript source.

setDestinationDir

open fun setDestinationDir(destinationDir: File): Unit

Sets the output directory where processed JavaScript should be written.

setPlayPlatform

open fun setPlayPlatform(playPlatform: PlayPlatform): Unit

Sets the target Play platform.

Inherited Functions

exclude

open fun exclude(vararg excludes: String): SourceTask
open fun exclude(excludes: MutableIterable<String>): SourceTask
open fun exclude(excludeSpec: Spec<FileTreeElement>): SourceTask
open fun exclude(excludeSpec: Closure<Any>): SourceTask

{@inheritDoc}

getExcludes

open fun getExcludes(): MutableSet<String>

{@inheritDoc}

getIncludes

open fun getIncludes(): MutableSet<String>

{@inheritDoc}

getSource

open fun getSource(): FileTree

Returns the source for this task, after the include and exclude patterns have been applied. Ignores source files which do not exist.

include

open fun include(vararg includes: String): SourceTask
open fun include(includes: MutableIterable<String>): SourceTask
open fun include(includeSpec: Spec<FileTreeElement>): SourceTask
open fun include(includeSpec: Closure<Any>): SourceTask

{@inheritDoc}

setExcludes

open fun setExcludes(excludes: MutableIterable<String>): SourceTask

{@inheritDoc}

setIncludes

open fun setIncludes(includes: MutableIterable<String>): SourceTask

{@inheritDoc}

setSource

open fun setSource(source: FileTree): Unit

Sets the source for this task.

open fun setSource(source: Any): Unit

Sets the source for this task. The given source object is evaluated as per org.gradle.api.Project#files(Object...).

source

open fun source(vararg sources: Any): SourceTask

Adds some source to this task. The given source objects will be evaluated as per org.gradle.api.Project#files(Object...).