0

for a smooth migration I'm looking for a recipe in Open-Rewrite to move a file (in that case a configuration File which always has the same name) from one location (for example C:\project\mymodule\test.conf) to another (for example C:\project\mymodule\v2\test.conf).

Thanks in Advance

1 Answers1

0

Had you come across the Rename a file recipe?

---
type: specs.openrewrite.org/v1beta/recipe
name: com.yourorg.RenameFileExample
displayName: Rename a file example
recipeList:
  - org.openrewrite.RenameFile:
      fileMatcher: '**/application-*.yml'
      fileName: application.yml
Tim
  • 19,793
  • 8
  • 70
  • 95