|
From: McDonald, B. <Bru...@ba...> - 2003-10-09 18:42:10
|
The separator is the File.pathSeparator or is the other one :) Just look at the documentation from path separator. Also take a look at the LoadEnvironment class for how it splits up the path. Also look at the Classloader in the init module- it does the same to fake the classpath. -----Original Message----- From: David Kinnvall [mailto:dav...@al...] Sent: Thursday, October 09, 2003 2:12 PM To: McDonald, Bruce Cc: bab...@li... Subject: Re: [Babeldoc-devel] Enable file-based inclusion of Velocity templates? McDonald, Bruce wrote: > It is multivalued - it should at least contain the currect working directory. Right. Ok, I'll take a second look at it and see if I can come up with a slightly more robust solution that incorporates all paths present in the user.dir property, and if it happens to be empty a fallback to "." (as it is in my simple version now) could possibly be an acceptable method? The separator, when multiple values are present, is ":" right? If this is done, then templates will be found through the Velocity #include and #parse statements in this order: 1. Relative to each path component of user.dir, in order. 2. Relative to Babeldoc classpath, as it does now. First match wins, i.e overrides any potential later match. Reasonable? /David |