Refactor AntBuilder to Groovy's built-in file operations
This task involves refactoring the existing codebase to replace deprecated AntBuilder usage with Groovy's built-in file operations APIs for all file operations. The current implementation relies on AntBuilder for basic file system operations, which introduces unnecessary dependencies and uses outdated patterns.
Current Problem The codebase currently uses AntBuilder for several critical file operations:
File copying (AntBuilder.copy())
File moving (AntBuilder.move())
Directory deletion (AntBuilder.delete())
Text replacement in files (AntBuilder.replace())
Have kept seperate PR's for each for better debugging in case anything fails
Copy update is reverted https://github.com/checkstyle/contribution/pull/982#issuecomment-3475338736
We need to migrate off AntBuilder.copy()
@AmitKumarDeoghoria , please help us to finish this migration.