Hi Malcolm,
Malcolm Edgar wrote:
> Just been reviewing the JAR based resource deployment. I think this is
> a great pattern packaged controls, and I think probably makes the
> click.xml <control-set> redundant.
It will also work nicely for modules:
META-INF/web/module1/product/edit-product.js
META-INF/web/module1/product/edit-product.htm
META-INF/web/module2/customer/edit-customer.js
META-INF/web/module2/customer/edit-customer.htm
>
> It would be nice to use for Click Core and Extras, however there are
> issues with people putting the JAR is shared application server
> directories rather than WEB-INF/lib,
We scan on the classpath if we need to:
ClassLoader loader = contextClassLoader.getClassLoader();
Enumeration urls = loader.getResources("META-INF/web");
while (urls.hasMoreElements()) {
URL url = (URL) urls.nextElement();
...
}
> and the order in which they are processed.We could be look at the JAR names to scan for click JARS,
> but if people rename these JARS it may not work.
If there is a need to specify order we can use the same logic as for
control-set by specifying jars in click.xml. Should we implement this
for M3?
kind regards
bob
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Click-development mailing list
Click-development@...
https://lists.sourceforge.net/lists/listinfo/click-development