Gradle File Resolution: Difference between revisions
Jump to navigation
Jump to search
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | |||
* https://docs.gradle.org/current/userguide/working_with_files.html | |||
=Internal= | =Internal= | ||
* [[Gradle_Concepts#Gradle_File_Resolution|Gradle Concepts]] | |||
* [[Gradle Project#Gradle_File_Resolution|Gradle Project]] | * [[Gradle Project#Gradle_File_Resolution|Gradle Project]] | ||
* [[Gradle_Files_Layout|Gradle Files Layout]] | |||
=TODO= | |||
<font color=darkgray>TODO: https://docs.gradle.org/current/userguide/working_with_files.html</font> | |||
=Overview= | =Overview= | ||
Line 8: | Line 15: | ||
* [https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#files-java.lang.Object...- Project.files(paths...)] | * [https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#files-java.lang.Object...- Project.files(paths...)] | ||
* [https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#fileTree-java.lang.Object- Project.fileTree(baseDir)] | * [https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#fileTree-java.lang.Object- Project.fileTree(baseDir)] | ||
=<span id='Project_file'></span><span id='Project.files.28Object..._paths.29'></span><tt>Project.file(Object path)</tt> and <tt>Project.files(Object... paths)</tt>= | |||
Many methods that accept files as arguments mention that the inputs will be "evaluated as per: | |||
<syntaxhighlight lang='groovy'> | |||
Project.files(Object... paths) | |||
</syntaxhighlight> | |||
TODO: https://docs.gradle.org/current/dsl/org.gradle.api.Project.html#org.gradle.api.Project:files(java.lang.Object[]) | |||
=CoypSpec= | |||
{{External|https://docs.gradle.org/current/javadoc/org/gradle/api/file/CopySpec.html}} | |||
=<span id='FileCollection'></span><tt>org.gradle.api.file.FileCollection</tt>= | |||
{{External|https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileCollection.html}} | |||
=File Tree= | |||
[[Gradle_Incremental_Builds#.40OutputFiles|@OutputFiles]] | |||
=Organizatorium= | |||
<syntaxhighlight lang='groovy'> | |||
output = new File(buildDir, "test.txt") | |||
</syntaxhighlight> |
Latest revision as of 06:41, 28 March 2021
External
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)
CoypSpec
org.gradle.api.file.FileCollection
File Tree
Organizatorium
output = new File(buildDir, "test.txt")