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

DirectoryTask

open class DirectoryTask : DefaultTask

This task creates an empty directory with an content type file. As long the content file exists the task is upToDate.

Constructors

<init>

DirectoryTask()

This task creates an empty directory with an content type file. As long the content file exists the task is upToDate.

Properties

contentType

var contentType: ContentType

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

directoryFile

val directoryFile: File

directoryPath

var directoryPath: String

Directory path configuration of the component.

Functions

createDirectory

fun createDirectory(): Unit

The directory will be created automatically as base directory of the output file. The content file is the output file for this task.

provideDirectoryPath

fun provideDirectoryPath(directoryPath: Provider<String>): Unit

Set the provider for the directory path property.

setContentType

fun setContentType(type: String): Unit

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