Re: customizing resourceType resolution?

2012-06-27 Thread Justin Edelson
Hi Sam, On Jun 27, 2012 3:56 PM, "sam ”" wrote: > > Thanks Justin. > Works well! Glad to hear. > > =8<= >@Override >public Resource decorate(Resource resource, HttpServletRequest request) > { >final String resourceType = resource.getResourceType(); >if ("old/handler".equ

Re: customizing resourceType resolution?

2012-06-27 Thread sam ”
Thanks Justin. Works well! =8<= @Override public Resource decorate(Resource resource, HttpServletRequest request) { final String resourceType = resource.getResourceType(); if ("old/handler".equals(resourceType)) { return new ResourceWrapper(resource) {

Re: customizing resourceType resolution?

2012-06-27 Thread Justin Edelson
Hi Sam, ResoureDecorators must be registered add OSGi services. Justin On Jun 27, 2012 3:00 PM, "sam ”" wrote: > Ah thanks. > > Is there a way to provide ResourceDecorator implementation in script (jsp)? > Or, do I have to provide OSGi bundle/component? > > > On Wed, Jun 27, 2012 at 2:34 PM, Jus

Re: customizing resourceType resolution?

2012-06-27 Thread sam ”
Ah thanks. Is there a way to provide ResourceDecorator implementation in script (jsp)? Or, do I have to provide OSGi bundle/component? On Wed, Jun 27, 2012 at 2:34 PM, Justin Edelson wrote: > Hi Sam, > You should be able to do this with a ResourceDecorator service to change > the resource type

Re: customizing resourceType resolution?

2012-06-27 Thread Justin Edelson
Hi Sam, You should be able to do this with a ResourceDecorator service to change the resource type at runtime. Regards, Justin On Jun 27, 2012 2:25 PM, "sam ”" wrote: > Hey, > > I have a large number of resources with sling:resourceType = old/handler > > I don't want to modify their sling:resou

customizing resourceType resolution?

2012-06-27 Thread sam ”
Hey, I have a large number of resources with sling:resourceType = old/handler I don't want to modify their sling:resourceType property. But, I want to have old/handler actually resolve to /apps/new/handler For example, given a resource: /content/mypage whose sling:resourceType = old/hander, G

Re: problem with partialbundlelist and trunk version of launchpad plugin

2012-06-27 Thread Reto Bachmann-Gmür
Hi Justin Thanks for your reply, having true makes sense. However I'm having a new problem when setting this option. I'm getting the following error: [ERROR] Failed to execute goal org.apache.sling:maven-launchpad-plugin:2.1.1-SNAPSHOT:prepare-package (prepare-package) on project sample-jar: Unab