FileSystemLocationProperty

Represents some element of the file system. A file system element has two parts: its location and its content. A file system element's content, may be the output of a task or tasks. This property object keeps track of both the location and the task or tasks that produce the content of the element.

Note: This interface is not intended for implementation by build script or plugin authors.

Since

5.6

Parameters

<T>

The type of location.

Inheritors

Functions

Link copied to clipboard
fun <T : FileSystemLocation> FileSystemLocationProperty<T>.assign(file: File?)

Assign file to a FileSystemLocationProperty with assign operator

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

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

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

Assign value: T to a property with assign operator

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

Assign value: Provider to a property with assign operator

Link copied to clipboard
abstract fun convention(value: T): Property<T>
Link copied to clipboard
abstract fun disallowChanges()
Link copied to clipboard
abstract fun disallowUnsafeRead()
Link copied to clipboard
Sets the location of this file, using a FileProvider instance.
Link copied to clipboard
abstract fun fileValue(@Nullable file: File): FileSystemLocationProperty<T>
Sets the location of this file, using a File instance.
Link copied to clipboard
abstract fun filter(spec: Spec<in T>): Provider<T>
Link copied to clipboard
abstract fun finalizeValue()
Link copied to clipboard
abstract fun finalizeValueOnRead()
Link copied to clipboard
abstract fun <S> flatMap(transformer: Transformer<out @Nullable Provider<out S>, in T>): Provider<S>
Link copied to clipboard
Link copied to clipboard
abstract fun get(): T
Link copied to clipboard
abstract fun getAsFile(): Provider<File>
Views the location of this file as a File.
Link copied to clipboard
abstract fun getLocationOnly(): Provider<T>
Returns the location of the file system element, and discards details of the task that produces its content.
Link copied to clipboard
abstract fun getOrElse(defaultValue: T): T
Link copied to clipboard
abstract fun getOrNull(): T
Link copied to clipboard
operator fun <T> Property<T>.getValue(receiver: Any?, property: KProperty<*>): T

Property delegate for Property instances.

Link copied to clipboard
abstract fun isPresent(): Boolean
Link copied to clipboard
abstract fun <S> map(transformer: Transformer<out @Nullable S, in T>): Provider<S>
Link copied to clipboard
abstract fun orElse(value: T): Provider<T>
Link copied to clipboard
abstract fun set(@Nullable file: File)
Sets the location of this file, using a File instance.
abstract fun set(value: T)
Link copied to clipboard
operator fun <T> Property<T>.setValue(receiver: Any?, property: KProperty<*>, value: T)

Property delegate for Property instances.

Link copied to clipboard
abstract fun unset(): Property<T>
abstract fun unset(): SupportsConvention
Link copied to clipboard
Link copied to clipboard
abstract fun value(value: T): Property<T>
Link copied to clipboard
abstract fun <U, R> zip(right: Provider<U>, combiner: BiFunction<in T, in U, out @Nullable R>): Provider<R>