[Yanel-dev] Re: Using contributed resources

Balz Schreier balz.schreier at gmail.com
Sat Sep 18 11:38:12 CEST 2010


Hi,

I guess I've found the solution for what I want to do.
In order to use a contributed resource which is available from the yanel
trunk, I have added this line to my realm's resources-xml:

<resource-type package=3D"org.wyona.yanel.impl.resources.redirect" compile=
=3D
"false"/>

Now it seems to work fine.
Is this the correct way how to use contributed resources from another realm?

Thanks,
Cheers
Balz

On Sat, Sep 18, 2010 at 11:13 AM, Balz Schreier <balz.schreier at gmail.com>wr=
ote:

> Hi,
>
> I would like to reuse the redirect resource
> (/yanel/src/contributions/resources/redirect).
>
> According to the documentation:
> http://127.0.0.1:8080/yanel/yanel-website/en/documentation/configuration/=
resource-types_xml.html,
> I have configured this line in my realm's resource-types.xml:
>
> <resource-type package=3D"org.wyona.yanel.impl.resources.redirect" src=3D=
"@YANEL_SRC_DIR@/src/contributions/resources/redirect/" compile=3D"true"/>
>
>
> Somehow, the variable @YANEL_SRC_DIR@ does not get replaced during the bu=
ild of YANEL.
> If I replace it with a fully qualified value to the yanel source dir, the=
 resource gets compiled (by yanel's build.sh) and the redirect works fine.
>
> Any idea, why it does not get replaced?
>
>
> Cheers
> Balz
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wyona.org/pipermail/yanel-development/attachments/2010091=
8/f6f26670/attachment.htm


More information about the Yanel-development mailing list