Very very basic question. Is there a way to specify the package (when doing shiro-quick-start) where to place ShiroUser and ShiroRole classes at? By default they are placed at grails-app/domain/ and I want them at /grails-app/domain/com/bla/bla. 开发者_StackOverflowNetbeans' refactoring tool is useless when trying to move those classes.
Thanks.
Well it doesn't seem possible to have it out of the box.
You might have a temporary solution that consists in:
- Install shiro plugin as an inplace plugin (see here) : Uninstall shiro plugin, download shiro plugin zip file and unzip it under
MyProject/.
. Then modifyBuildConfig.groovy
file and addgrails.plugin.location.'shiro' = "shiro"
- Modifying
_ShiroInternal.groovy
script fromshiro/scripts
folder and especially line having codedef artefactPath = "grails-app/domain"
. Here you can append aargsMap['package']
if it was specified by user command parameters - Submit your patch (after test) to the plugin source code. This way you will contribute back to the community and to this amazing plugin AND you will get benefit to have your patch included in the next release (and remove the inplace plugin setup)
I think the answer to do this is:
grails shiro-quick-start **--prefix=org.example.mypackage.**
I hope that helps...
plugin description and installation
精彩评论