component-build-plugin / com.intershop.gradle.component.build.extension.container / FileItemContainer / add

add

fun add(file: File, vararg types: String): FileItem

Add a single file to the component. This kind of files will be copied as they are.

Parameters

file - a real file on the file system

types - set of deployment or environment types

fun add(file: File): FileItem

Add a single file to the configuration.

Parameters

file - a real file on the file system

fun add(file: File, action: Action<in FileItem>): Unit

Add a single file to the configuration and configures this.

Parameters

file - a real file on the file system.

action - action to configure all parameters of file item.