geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/cli Main.java
Date Sat, 16 Aug 2003 09:26:16 GMT
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);
  
  
  

Mime
View raw message