[Yanel-dev] Ambiguous file resolving if two resources are contained in the same jar file

Michael Wechner michael.wechner at wyona.com
Fri Jul 22 17:20:42 CEST 2011


Hi

I have refactored the search/re-index resources such that these use the 
same package.

For all other similar cases I have added a bug entry

http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=8447

The search/re-index works now for me locally using jar files (as 
binary), but it still doesn't work
properly on one of our servers. Will try to figure out what might be the 
problem and keep you posted...

Thanks

Michael

Am 22.07.11 16:23, schrieb Michael Wechner:
> Hi
>
> It's possible to have more than one resource per jar file.
>
> The problem I have just noticed is that if one adds custom files, but 
> has two package names,
> then it's not clear anymore what the path "rthtdocs:/foor/bar.txt" means.
>
> At the moment a jar with two package names can look like:
>
> META-INF/
> META-INF/MANIFEST.MF
> org/
> org/wyona/
> org/wyona/yanel/
> org/wyona/yanel/impl/
> org/wyona/yanel/impl/resources/
> org/wyona/yanel/impl/resources/reindexer/
> org/wyona/yanel/impl/resources/reindexer/htdocs/
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/doc/
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/icons/
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/icons/16x16/
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/icons/22x22/
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/icons/32x32/
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/icons/scalable/
> org/wyona/yanel/impl/resources/search/
> org/wyona/yanel/impl/resources/reindexer/ReindexResource.class
> org/wyona/yanel/impl/resources/reindexer/htdocs/reindexer.xsl
> org/wyona/yanel/impl/resources/reindexer/htdocs/results2xhtml.xsl
> org/wyona/yanel/impl/resources/reindexer/resource-reindexer.xml
> org/wyona/yanel/impl/resources/reindexer/resource.xml
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/doc/index.html
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/icons/16x16/rt-icon.png 
>
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/icons/22x22/rt-icon.png 
>
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/icons/32x32/rt-icon.png 
>
> org/wyona/yanel/impl/resources/reindexer/yanel-htdocs/icons/scalable/rt-icon.svg 
>
> org/wyona/yanel/impl/resources/search/DebugContentHandler.class
> org/wyona/yanel/impl/resources/search/ExternalSearchProvider.class
> org/wyona/yanel/impl/resources/search/Result.class
> org/wyona/yanel/impl/resources/search/SearchResource.class
> org/wyona/yanel/impl/resources/search/TitleContentHandler.class
> org/wyona/yanel/impl/resources/search/XHTMLBean.class
> org/wyona/yanel/impl/resources/search/XHTMLBeanContentHandler.class
>
>
> Hence either we have two duplicate the folder "htdocs" for each 
> package or we need
> to enforce that resources inside the same jar must have the same 
> package name.
>
> Or that one can specify the package more explicitely...)
>
> WDYT?
>
> Thanks
>
> Michael



More information about the Yanel-development mailing list