# assign

fun ConfigurableFileCollection.assign(fileCollection: FileCollection)

Sets the ConfigurableFileCollection to contain the source paths of passed collection. This is the same as calling ConfigurableFileCollection.setFrom(fileCollection: FileCollection).

#### Since

8.2

fun <T : Any> Property<T>.assign(value: T?)

Assign value: T to a property with assign operator

#### Since

8.2

fun <T : Any> Property<T>.assign(value: Provider<out T>)

Assign value: Provider to a property with assign operator

#### Since

8.2

fun <T : FileSystemLocation> FileSystemLocationProperty<T>.assign(file: File?)

Assign file to a FileSystemLocationProperty with assign operator

#### Since

8.2

fun <T : FileSystemLocation> FileSystemLocationProperty<T>.assign(provider: Provider<File>)

Assign file provided by a Provider to a FileSystemLocationProperty with assign operator

#### Since

8.2

fun <T : Any> HasMultipleValues<T>.assign(elements: Iterable<T>?)

Sets the value of the property to the elements of the given iterable, and replaces any existing value

#### Since

8.2

fun <T : Any> HasMultipleValues<T>.assign(provider: Provider<out Iterable<T>>)
fun <K : Any, V : Any> MapProperty<K, V>.assign(provider: Provider<out Map<out K, V>>)

Sets the property to have the same value of the given provider, and replaces any existing value

#### Since

8.2

fun <K : Any, V : Any> MapProperty<K, V>.assign(entries: Map<out K, V>?)

Sets the value of this property to the entries of the given Map, and replaces any existing value

#### Since

8.2