I'm implementing an ArtefactHandler and I want to be able to create artefacts from Script
s (to support a legacy format). I don't want to make all Scripts into artefacts, but just those in a particular subdirectory of grails-app, say grails-app/foo/
.
I'm stuck at trying to figure out the path of the artefact from my ArtefactHandler
's isArtefactClass
method. Is there a way to get the path to the original source of the class, or otherwise determine if it's contained in grails-app/foo
?