Author: mvitenkov
Date: 2009-08-04 07:54:47 -0400 (Tue, 04 Aug 2009)
New Revision: 15104
Modified:
branches/community/3.3.X/test-applications/facelets/src/main/java/util/parser/TLDParser.java
Log:
Parser fix for linux
Modified:
branches/community/3.3.X/test-applications/facelets/src/main/java/util/parser/TLDParser.java
===================================================================
---
branches/community/3.3.X/test-applications/facelets/src/main/java/util/parser/TLDParser.java 2009-08-04
10:30:19 UTC (rev 15103)
+++
branches/community/3.3.X/test-applications/facelets/src/main/java/util/parser/TLDParser.java 2009-08-04
11:54:47 UTC (rev 15104)
@@ -114,12 +114,17 @@
int position;
try {
if ((position = getExtPath().indexOf('!')) != -1) {
- temp = getExtPath().substring("jar:file:\\".length(), position);
+ if
(System.getProperty("os.name").toLowerCase().startsWith("windows")) {
+ temp = getExtPath().substring("jar:file:\\".length(), position);
+ } else {
+ temp = "/" +
getExtPath().substring("jar:file:/".length(), position);
+ }
+
}
richfacesUI = new JarFile(temp);
} catch (IOException e) {
e.printStackTrace();
}
return richfacesUI;
- }
+ }
}
Show replies by date