lauripiispanen/grails-resources — comment on commit 69399d7ffa4633c952e442aa6127cdb3f82066a9
File:  line 0
By marcpalmer:

On 12 Dec 2011, at 18:38, Lauri Piispanen wrote:

> Exactly - I didn't really know all the places this would touch... I've been trying to wrap my head around possible ways for the plugin to know that the incoming request targets an ad-hoc resource, but apart from scanning them all I can't think of a good way to do this.
>
>

Actually this doesn't sound right at all. Ad hoc requests always have /static/ at the start.

If you don't have /static/ in the link it is a legacy resource, which is a different thing. In this case we could detect a "404" under /static/ and check if there is a real legacy resource under web-app and if so use that, but I'm not sure yet.

Marc

~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java)

Founder @ http://noticelocal.com | Developer @ http://weceem.org
Member @ http://spottymushroom.com | Contributor @ http://grails.org
Twitter: http://twitter.com/wangjammer5 | Resumé: http://www.anyware.co.uk/marc/
Blog: http://www.anyware.co.uk | Grails Rocks: http://www.grailsrocks.com