Sep 9th, 2010, 01:39 PM
Duplicate a Grails Application with a new name
What is the recommend method to duplicate/rename an existing Grails application ?
I copied and renamed the TekDays application from the TekDays top level using Windows Explorer. When I run the renamed version all of the plugins are missing. Hence my question.
In case it matters, I am also using (read as: learning to use) GIT and IntelliJ IDEA 9.
Sep 9th, 2010, 09:14 PM
The two important steps are to rename the new project folder to the new project name, and change the 'app.name' property in application.properties to the new name.
To resolve the missing plugins, as long as they're available in the standard repo or you've configured a custom repository, just run any grails command and it'll re-check the dependencies and install the missing plugins. 'grails compile' should do the trick.
If you were working with a custom plugin that you got from a nonstandard location or one that you're developing yourself, you'd have to reinstall it the same way you installed it in the original app.
Tags for this Thread