contribution icon indicating copy to clipboard operation
contribution copied to clipboard

Refactor AntBuilder to Groovy's built-in file operations

Open AmitKumarDeoghoria opened this issue 2 months ago • 3 comments

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())

AmitKumarDeoghoria avatar Oct 19 '25 11:10 AmitKumarDeoghoria

Have kept seperate PR's for each for better debugging in case anything fails

AmitKumarDeoghoria avatar Oct 19 '25 12:10 AmitKumarDeoghoria

Copy update is reverted https://github.com/checkstyle/contribution/pull/982#issuecomment-3475338736

We need to migrate off AntBuilder.copy()

romani avatar Nov 01 '25 01:11 romani

@AmitKumarDeoghoria , please help us to finish this migration.

romani avatar Nov 30 '25 16:11 romani