开发者

Command to change package name in Grails

I have created my application under package music. Now I want to change my package to com.mp3.songs.music.

One way is I can manually create the package for grails-app. Is there anything else that I need to take care while changing the package name.

Alternatively, is there a command in grails which can be used to change the package.

I found a way out in the below link. But this works only when you create new files. What i开发者_Go百科f you want to change the package of the older files.

http://www.goto20.nl/tech/groovy/configuring-the-default-package-name-for-a-grails-project/

Thanks!


IntelliJ IDEA has very good support for rename refactoring. I believe it is currently the best (9.0.3 stable) chance you'll have of any major refactoring jobs in Grails. They have a 30 day trial, so it is worth a try.


Why not use Spring Source Tool Suite. Its a great IDE with solid support for Groovy n Grails.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜