fun add(file: File, targetPath: String): Unit
Adds a file item with a local file and a target path.
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.
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.
file - the file instance of the local file.
targetPath - the target path in the installation without file name.