Summary
The Copy task is a task type provided by core Gradle which can be used to copy files into a destination directory from one or more sources, optionally transforming files as it copies.
1
Gradle also provides several concepts and APIs to help build with files, such as the Project.file() method, FileCollection(), FileTree(), and FileTree() methods.
2
These methods allow developers to locate files relative to the project directory, create file collections, and create file trees.
According to
See more results on Neeva
Summaries from the best pages on the web
You copy a file by creating an instance of Gradle’s builtin Copy task and configuring it with the location of the file and where you want to put it. This ...
Working With Files
gradle.org
Copies files into a destination directory. This task can also rename and filter files as it copies. The task implements CopySpec for specifying what to copy.
Copy - Gradle DSL Version 8.0.1
gradle.org
Summary
The Copy task is a task type provided by core Gradle. At execution, a copy task copies files into a destination directory from one or more sources, optionally transforming files as it copies. You tell the copy task where to get files, where to put them, and how to filter them through a configuration block.
1. File Operations - Gradle Beyond the Basics [Book]
oreilly.com
Summary
Gradle adds several concepts and APIs to help build with files, such as the Project.file() method, FileCollection(), FileTree(), and FileTree() methods. These methods allow developers to locate files relative to the project directory, create file collections, and create file trees. Additionally, the FileTree() method allows developers to create a file tree based on a task or task output, and the FileTree() method allows developers to create a file tree based on a task or task output output.
Chapter 16. Working With Files
sorcersoft.org
org.gradle.api.internal.file.copy.DestinationRootCopySpec getRootSpec () void setDestinationDir (java.io.File destinationDir) Sets the directory to copy ...
Copy (Gradle API 8.0.1)
gradle.org