PlexusFileUtils Refaster recipes
Recipe ID
org.openrewrite.codehaus.plexus.PlexusFileUtilsRecipesArtifact
org.openrewrite.recipe:rewrite-apacheRefaster template recipes for org.openrewrite.codehaus.plexus.PlexusFileUtils.
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.codehaus.plexus.PlexusFileUtilsRecipesIf the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-apache:2.29.0Definition
This recipe runs the following recipes in order.
- Replace
FileUtils.deleteDirectory(File)with JDK provided APIorg.openrewrite.codehaus.plexus.PlexusFileUtilsRecipes$DeleteDirectoryFileRecipe - Replace
FileUtils.deleteDirectory(String)with JDK provided APIorg.openrewrite.codehaus.plexus.PlexusFileUtilsRecipes$DeleteDirectoryStringRecipe - Replace
FileUtils.fileExists(String)with JDK provided APIorg.openrewrite.codehaus.plexus.PlexusFileUtilsRecipes$FileExistsStringRecipe - Replace
FileUtils.getFile(String)with JDK provided APIorg.openrewrite.codehaus.plexus.PlexusFileUtilsRecipes$GetFileRecipe
Data tables
Structured output this recipe can produce.
- Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats