Grails - Determine if an artefact class is in a given subdirectory of grails-app -


i'm implementing artefacthandler , want able create artefacts scripts (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

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -