[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 16:23:15 CEST 2011
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