component-installation-plugin / com.intershop.gradle.component.installation.extension / LocalFileContainer / add

add

fun add(file: File, targetPath: String): Unit

Adds a file item with a local file and a target path.

Parameters

file - the file instance of the local file.

targetPath - the target path in the installation without file name.

fun add(file: File, targetPath: String, action: Action<in LocalFileItem>): Unit

Adds a file item with a local file and a target path. The configuration can be adapted with an action.

Parameters

file - the file instance of the local file.

targetPath - the target path in the installation without file name.

action - for the configuration of the local file item.

fun add(file: File, targetPath: String, closure: Closure<LocalFileItem>): Unit

Adds a file item with a local file and a target path. The configuration can be adapted with a closure.

Parameters

file - the file instance of the local file.

targetPath - the target path in the installation without file name.

closure - for the configuration of the local file item.