open class FileItemContainer : AItem
This class provides a container for deployable single files.
FileItemContainer(parent: ComponentExtension)
provides an empty preconfigured file item container |
val items: Set<FileItem>
This set provides all configured files. |
|
val parent: ComponentExtension
the parent of this container. |
|
var updatable: Boolean
If an item should not be part of an update installation, this property is set to true. |
open var contentType: String
This property contains the content type of the item. The following values are allowed: |
|
open val types: Set<String>
This set contains deployment or environment type definitions, like 'production', 'test' etc. The set can be extended. The set is empty per default. It is defined as an task input property. |
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. fun add(file: File): FileItem
Add a single file to the configuration. fun add(file: File, action: Action<in FileItem>): Unit
Add a single file to the configuration and configures this. |
fun addType(type: String): Boolean
Adds a new deployment or environment type. The characters will be changed to lower cases. |
|
fun addTypes(types: Collection<String>): Boolean
Adds a list of new deployment or environment types. The characters will be changed to lower cases. |
|
fun setTypes(types: Collection<String>): Unit
Reset the set with new values from input. |