Barracuda: DefaultApplicationAssembler....
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Organization | Springfield Nuclear Plant |
| Message-ID | <[email protected]> |
Hi all, I modified DefaultApplicationAssembler to not load the assembler files via file IO when a single file is being loaded. The impetus to do this was after Jan Casteels sent me a version that she had modified to load via an InputStream instead of a FileInputSteam (as it had been erroneously modified to do). I used that, but modified things relatively significantly and cleaned things up a bit. I'm wondering if some people can test it the way they use it and report any errors. For instance, I know some of you put the assembler file in WEB-INF/classes (or any package within) instead of WEB-INF or just specify the file in the web.xml instead of the full relative path such as WEB-INF/myassembler.xml. Or, maybe you use "/WEB-INF/myassember.xml instead of "WEB-INF/myassember.xml". Maybe you use a fully qualified path instead of a relative one such as "/usr/local/myassembler.xml" or "C:\myassember.xml" or whatever. I'd like to get reports back of things not working with odd usages because I don't want to break anyones app. Note that when using multiple files you must be serving your webapp from the filesystem and not out of a .war file and it will only work if you: 1. don't specify the directory path and just say something like myassember*.xml and make sure that any of those assembler files exist in WEB-INF and nowhere else. It assumes WEB-INF 2. specify the full relative path such as "/WEB-INF/myassembler*.xml" or "WEB-INF/myassembler*.xml" or whatever path relative to the webapp. 3. specify the fully qualified path to the file which can be anywhere on the filesystem. I plan to try to work on that because I think I can get a list of files from the servlet api without doing File IO which would be ideal! Thanks! Jake -- Best regards, Jacob mailto:[email protected]
DefaultApplicationAssembler.java
(java/*, 27.7 KB) - not displayed