Skip to content

Commit

Permalink
Tuned code example.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkrauss committed Aug 17, 2018
1 parent 2fa821d commit 1404e4e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,15 @@ on the class name:

[source,kotlin]
----
val refactobot = Refactobot.configure { // <1>
val refactobot = Refactobot.configure { // Create and configure the refactobot instance.
refactor { // <2>
refactor { // In this block, we specify the transformations to apply to the codebase.
renameFile("""(.*)DaoBean\.java""" to "(.*)DaoImpl.java")
}
}
refactobot.run("/path/to/codebase") // <3>
refactobot.run("/path/to/codebase") // The actual invocation of the tool.
----
<1> Set up the refactobot object.
<2> In the `refactor` block we specify the transformations to apply to the codebase.
<3> The actual invocation of the tool.

=== Fix the base package name

Expand Down

0 comments on commit 1404e4e

Please sign in to comment.