cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò <ilgro...@apache.org>
Subject Re: cocoon 3: Javascript in jars
Date Sat, 08 Oct 2011 11:02:22 GMT
On 14/09/2011 14:28, Andre Juffer wrote:
> On 14/09/11 15:13, Francesco Chicchiriccò wrote:
>> On 14/09/2011 13:58, Andre Juffer wrote:
>>> On 14/09/11 14:35, Javier Puerto wrote:
>>>> [...]
>>>> AFAIK, Resource protocol is not yet implemented in Cocoon 3.
>>>
>>> There may be another way. It is possibly called differently? I tried 
>>> "classpath://...", but didn't work either. E.g. Spring uses this 
>>> protocol as well to load configuration located in jars. Very convenient.
>>
>> I did this in another (Cocoon3-based) project: It should be enough to 
>> add a class like [1], then add a bean like as
>>
>> <!-- Using classpath: resources -->
>> <bean 
>> class="org.onehippo.forge.hct.cocoon.internal.ClasspathURLStreamHandlerFactory"/>
>>
>> in one of spring's XMLs.
>
> Yes, this looks promising. So, this would mean that the following 
> would work?
>
> <map:match pattern="dojoroot/**">
> <map:read src="classpath://dojoroot/{1}" />
> </map:match>
>
> I will try this (later today).

Hei, I am curious: did this work at the end?

Regads.

> Thanks,
> André
>
>
>>
>> Regards.
>>
>> [1] 
>> https://forge.onehippo.org/svn/hct/trunk/core/src/main/java/org/onehippo/forge/hct/cocoon/internal/ClasspathURLStreamHandlerFactory.java
-- 
Francesco Chicchiriccò

Apache Cocoon Committer and PMC Member
http://people.apache.org/~ilgrosso/


Mime
View raw message