You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2003/08/16 11:26:16 UTC
cvs commit: incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/cli Main.java
jdillon 2003/08/16 02:26:16
Modified: modules/twiddle/src/java/org/apache/geronimo/twiddle/cli
Main.java
Log:
o Use URLDecoder.decode(String, String) instead of deprecated decode(String)
Revision Changes Path
1.5 +2 -2 incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/cli/Main.java
Index: Main.java
===================================================================
RCS file: /home/cvs/incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/cli/Main.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Main.java 14 Aug 2003 20:24:34 -0000 1.4
+++ Main.java 16 Aug 2003 09:26:16 -0000 1.5
@@ -165,7 +165,7 @@
String temp = System.getProperty("twiddle.home");
if (temp == null) {
String path = Main.class.getProtectionDomain().getCodeSource().getLocation().getFile();
- path = URLDecoder.decode(path);
+ path = URLDecoder.decode(path, "UTF-8");
temp = new File(path).getParentFile().getParentFile().getCanonicalPath();
}
File homeDir = new File(temp);