Skip to content

Gradle file operations

Gradle provides robust APIs for file manipulation through the org.gradle.api.Project interface, allowing builds to handle common file system tasks programmatically^[gradle-build.md].

File Location

Projects use specific methods to resolve file paths relative to the current project directory^[gradle-build.md].

File Copying

Gradle manages file copying operations using the org.gradle.api.file.CopySpec interface^[gradle-build.md].

Directory Traversal

You can iterate through directory contents using FileTreeElement to process individual files and folders^[gradle-build.md].

  • [[Gradle Build]]
  • [[Gradle Tasks]]

Sources

^[gradle-build.md]