Re: PropertyChromeResourceLoader
Gerald Bauer <[email protected]>
| Newsgroups | gmane.comp.java.luxor-xul.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Ross, > I played a bit with the ChromeResourceLoading and > updated the > files in the attached zip. I invite you to create your own class loader(s) such as PropertyChromeResourceLoader or whatever you want to name it and then pack/zip it up with an example or two and a short readme and I will add it to the Luxor contrib site. Or if you want you can add it yourself. Using system properties to configure the chrome loaders is on my todo list. For more ideas check out the Velocity Developer's Guide section 12 entitled "Configuring Resource Loaders" online at http://jakarta.apache.org/velocity/developer-guide.html#Configuring%20Resource%20Loaders > There was a bug in ChromeJarResourceLoader that > caused > things to die in caramel code if you included a > classes > directory in your classpath and tried to use > anchors. > This has been fixed by making the > ChromeClassResourceLoader > a fully functional loader, and detecting whether the > class lies in a jar or the filesystem. The > constructor > that used classes has been removed from the Jar > version. > > Duplicate code has been removed and consolidated in > places like getAllEntries() which should make it > easier > to extend things in the future. Thanks for your bug fixes and code clean-up. I will have a look at it and merge/add it to the upcoming Beta Refresh. Note, however, that I won't add the system property configuration yet. Please, create a new chrome loader instead. - Gerald ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf