The implementation is in org.apache.java.util.ExtendedProperties.
One way to fix this could be to have a way to specify to this
class a prefix (null or "" by default) to prepend to all included
files. That way, one could do something like
ExtendedProperties ep = new ExtendedProperties();
// ...
// later on
root = "";
ServletContext context = info.getServletContext();
if (context.getRealPath("/") != null)
{
String pathSep = System.getProperty("path.separator");
StringTokenizer st = new StringTokenizer(root, pathSep);
StringBuffer buf = new StringBuffer();
while(st.hasMoreTokens())
{
buf.append(context.getRealPath(st.nextToken()));
if(st.hasMoreTokens())
{
buf.append(pathSep);
}
}
root = buf.toString();
ep.setIncludePrefix(root);
Also, perhaps we should have a utility function that encapsulates
this path juggling; it seems to be used in several places...
--
Gonzalo A. Diethelm
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]