Title: [921] trunk/rails-integration/src/main/java/org/jruby/webapp/util/FileUtil. java: Use Unix-style paths
Revision
921
Author
tantalon
Date
2008-03-01 22:33:13 -0500 (Sat, 01 Mar 2008)

Log Message

Use Unix-style paths

Modified Paths


Diff

Modified: trunk/rails-integration/src/main/java/org/jruby/webapp/util/FileUtil.java (920 => 921)


--- trunk/rails-integration/src/main/java/org/jruby/webapp/util/FileUtil.java	2008-02-29 22:37:55 UTC (rev 920)
+++ trunk/rails-integration/src/main/java/org/jruby/webapp/util/FileUtil.java	2008-03-02 03:33:13 UTC (rev 921)
@@ -42,7 +42,8 @@
 			throw new ServletException("Cannot find the real path of this webapp, probably using a non-extracted WAR");
 		}
 
-		// normalize path
+		// normalize path: use Unix-style paths, and remove trailing slash
+		realPath = realPath.replace('\\', '/');
 		if (realPath.endsWith("/")) {
 			realPath = realPath.substring(0, realPath.length() - 1);
 		}
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to