In case you landed here via google.
New grails (3.x) has "-force" option to regenerate generated files
$ grails generate-all bookstore.Author
Warning |
Destination file grails-app\controllers\bookstore\AuthorController.groovy already exists, skipping...
Warning |
Destination file src\test\groovy\bookstore\AuthorControllerSpec.groovy already exists, skipping...
Warning |
Destination file grails-app\views\author\edit.gsp already exists, skipping...
Warning |
Destination file grails-app\views\author\create.gsp already exists, skipping...
Warning |
Destination file grails-app\views\author\index.gsp already exists, skipping...
Warning |
Destination file grails-app\views\author\show.gsp already exists, skipping...
|Scaffolding completed for grails-app\domain\bookstore\Author.groovy
$ grails generate-all -force bookstore.Author
|Rendered template Controller.groovy to destination grails-app\controllers\bookstore\AuthorController.groovy
|Rendered template Spec.groovy to destination src\test\groovy\bookstore\AuthorControllerSpec.groovy
|Rendered template edit.gsp to destination grails-app\views\author\edit.gsp
|Rendered template create.gsp to destination grails-app\views\author\create.gsp
|Rendered template index.gsp to destination grails-app\views\author\index.gsp
|Rendered template show.gsp to destination grails-app\views\author\show.gsp
|Scaffolding completed for grails-app\domain\bookstore\Author.groovy