component-installation-plugin / com.intershop.gradle.component.installation.tasks / InstallTask

InstallTask

open class InstallTask : Sync

This class is the main installation task of this plugin. It extends the standard Gradle Sync task, so that the last modified time of input files will be preserved.

Constructors

<init>

InstallTask()

This class is the main installation task of this plugin. It extends the standard Gradle Sync task, so that the last modified time of input files will be preserved.

Properties

contentType

var contentType: ContentType

The content type will be stored in the specified component or module. Possible values are

Functions

copy

open fun copy(): Unit

The task action of the task. It calls the copy function of the Copy task and adds the content type information to the target dir.

createCopyAction

open fun createCopyAction(): CopyAction

See org.gradle.api.tasks.AbstractCopyTask for more information.

setContentType

fun setContentType(type: String): Unit

This will set the content type property from a string value.

Extension Functions

filter

fun <T : FilterReader> ContentFilterable.filter(vararg properties: Pair<String, Any?>): ContentFilterable

Adds a content filter to be used during the copy. Multiple calls add additional filters to the filter chain. Each filter should implement FilterReader. Import org.apache.tools.ant.filters.* for access to all the standard Ant filters.

Inheritors

InstallMutableTask

open class InstallMutableTask : InstallTask

Install task for mutable artifacts. It is possible to add filters to this task over the install extension.