Description of problem:
I have tried to install WAF 6.1 in Windows. However I run into
problems serving the stylesheet. I found out later, the problem is using
java.net.URL(). I have changed the file com.arsdigita.templating.
PatternStylesheetResolver to accommodate for any platform (not just
I have used
String realFile = new File(pathname).toURL().toExternalForm();
return new java.net.URL(realFile);
return new java.net.URL("file://" + pathname);
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Looks like we may want to also apply this fix to the following files:
$ find /var/vadim/p4checkout/core-platform/dev/src/ -name \*.java \ |
xargs grep '"file://' | sed 's/java:/java:\n/'
return new URL(new URL("file://" + home), "conf/");
return super.unmarshal("file://" + literal + "/conf/", errors);
java.net.URL sheet = new java.net.URL("file://" + sctx.getRealPath(path));
URL newURL = new URL("file://" + filename);
Looks like bug 112560 may need to be re-fixed along the same lines.
Fixed on the trunk in change 40018.
Dan, do you have any verification that this is working properly on the
Windows end? If so, I'm going to go ahead & close this.