# assign

fun ConfigurableFileCollection. assign(fileCollection: FileCollection)(source)

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> Property<T>.assign(value: T?)(source)

Assign value: T to a property with assign operator

#### Since

8.2

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

Assign value: Provider to a property with assign operator

#### Since

8.2

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

Assign file to a FileSystemLocationProperty with assign operator

#### Since

8.2

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

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

#### Since

8.2

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

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

#### Since

8.2

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

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

#### Since

8.2

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

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

#### Since

8.2