Grails - Determine if an artefact class is in a given subdirectory of grails-app -
i'm implementing artefacthandler , want able create artefacts script
s (to support legacy format). don't want make scripts artefacts, in particular subdirectory of grails-app, grails-app/foo/
.
i'm stuck @ trying figure out path of artefact artefacthandler
's isartefactclass
method. there way path original source of class, or otherwise determine if it's contained in grails-app/foo
?
grails doesn't care on filesystem classes are. that's smoke , mirrors. such, there no support location based artefacts, there ticket it: http://jira.codehaus.org/browse/grails-2174
in meantime, simplest solution force scripts have naming convention or possibly introduce kind of marker annotation. unsure how introspect script classes though looking annotations.
Comments
Post a Comment