api / org.gradle.api.file / FileCollection / minus

minus

abstract fun minus(collection: FileCollection): FileCollection

Returns a FileCollection which contains the difference between this collection and the given collection. The returned collection is live, and tracks changes to both source collections.

You can call this method in your build script using the - operator.

Parameters

collection - The other collection. Should not be null.

Return
A new collection containing the difference.