ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/java/installer2/src/net/oni2/aeinstaller/backend/Paths.java
(Generate patch)

Comparing java/installer2/src/net/oni2/aeinstaller/backend/Paths.java (file contents):
Revision 722 by alloc, Thu Mar 21 11:41:22 2013 UTC vs.
Revision 730 by alloc, Thu Mar 21 17:25:39 2013 UTC

# Line 35 | Line 35 | public class Paths {
35                          String wd = System.getProperty("user.dir");
36                          return new File(wd);
37                  } else {
38 <                        String jarPath = SettingsManager.class.getProtectionDomain()
38 >                        String jarPath = Paths.class.getProtectionDomain()
39                                          .getCodeSource().getLocation().getPath();
40                          String decodedPath = null;
41                          try {
# Line 43 | Line 43 | public class Paths {
43                          } catch (UnsupportedEncodingException e) {
44                                  e.printStackTrace();
45                          }
46 <                        return new File(decodedPath).getParentFile();
46 >                        return new File(decodedPath).getParentFile().getParentFile();
47                  }
48          }
49  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)