Gradle File Resolution: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 1: Line 1:
=Internal=
=Internal=
* [[Gradle Project#Gradle_File_Resolution|Gradle Project]]
* [[Gradle Project#Gradle_File_Resolution|Gradle Project]]
=TODO=
<font color=darkgray>TODO: https://docs.gradle.org/current/userguide/working_with_files.html</font>


=Overview=
=Overview=

Revision as of 06:39, 28 March 2021

Internal

TODO

TODO: https://docs.gradle.org/current/userguide/working_with_files.html

Overview

The Project API exposes methods for file resolution inside a project:

Project.file(Object path) and Project.files(Object... paths)

Many methods that accept files as arguments mention that the inputs will be "evaluated as per:

Project.files(Object... paths)

TODO: https://docs.gradle.org/current/dsl/org.gradle.api.Project.html#org.gradle.api.Project:files(java.lang.Object[])

CoypSpec

https://docs.gradle.org/current/javadoc/org/gradle/api/file/CopySpec.html

org.gradle.api.file.FileCollection

https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileCollection.html

File Tree

@OutputFiles

Organizatorium

output = new File(buildDir, "test.txt")