So in theory I should create an input stream for the main AE, then pass the stream and "." to XMLInputSource and it will "magically" find the others on the classpath?
- J On Fri, 2008-02-15 at 10:08 +0100, Thilo Goetz wrote: > jonathan doklovic wrote: > > Is there an example of how to load descriptors from the classpath? > > > > I need to load an AE that's descriptor is packaged in my jar file. > > It imports other AE's and a Type system. > > > > I see that XMLInputSource can take an input stream, but I'm not sure > > what to pass as the base for relative imports. > > > > All xml files are in the same folder in the jar. > > > > Thanks, > > > > - Jonathan > > So I'm not sure what the really correct answer to your > question is. However, I think that if you do all your > imports by name (instead of, by location), it doesn't > matter what base dir is, just pass in ".". > > --Thilo >
