Interface ConfigurableFileCollection

    • Method Detail

      • getFrom

        java.util.Set<java.lang.Object> getFrom()
        Returns the set of source paths for this collection. The paths are evaluated as per Project.files(Object...).
        Returns:
        The set of source paths. Returns an empty set if none.
      • setFrom

        void setFrom​(java.lang.Iterable<?> paths)
        Sets the source paths for this collection. The given paths are evaluated as per Project.files(Object...).
        Parameters:
        paths - The paths.
      • setFrom

        void setFrom​(java.lang.Object... paths)
        Sets the source paths for this collection. The given paths are evaluated as per Project.files(Object...).
        Parameters:
        paths - The paths.
      • convention

        @Incubating
        ConfigurableFileCollection convention​(java.lang.Iterable<?> paths)
        Specifies the value to use as the convention (default value) to be used when resolving this file collection, if no source paths are explicitly defined. If, at the time this method is invoked, the set of source paths for this collection is empty, the convention will be used to resolve this file collection.
        Parameters:
        paths - The paths.
        Returns:
        this collection
        Since:
        8.8
      • convention

        @Incubating
        ConfigurableFileCollection convention​(java.lang.Object... paths)
        Specifies the value to use as the convention (default value) to be used when resolving this file collection, if no source paths are explicitly defined. If, at the time this method is invoked, the set of source paths for this collection is empty, the convention will be used to resolve this file collection.
        Parameters:
        paths - The paths.
        Returns:
        this collection
        Since:
        8.8
      • getBuiltBy

        java.util.Set<java.lang.Object> getBuiltBy()
        Returns the set of tasks which build the files of this collection.
        Returns:
        The set. Returns an empty set when there are no such tasks.