Revision 8233
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/IntializeApplicationExtension.java | ||
---|---|---|
63 | 63 |
String andamiPath; |
64 | 64 |
String extensionsPath; |
65 | 65 |
String jaiVersion; |
66 |
|
|
67 |
Properties props = System.getProperties(); |
|
68 |
|
|
66 | 69 |
try { |
67 |
andamiPath = (new File(Launcher.class.getResource(".").getFile() + File.separator + ".." + File.separator + ".." + File.separator +"..")).getCanonicalPath(); |
|
68 |
} catch (IOException e) { |
|
69 |
andamiPath = (new File(Launcher.class.getResource(".").getFile() + File.separator + ".." + File.separator + ".." + File.separator +"..")).getAbsolutePath(); |
|
70 |
try { |
|
71 |
andamiPath = (new File(Launcher.class.getResource(".").getFile() + File.separator + ".." + File.separator + ".." + File.separator +"..")).getCanonicalPath(); |
|
72 |
} catch (IOException e) { |
|
73 |
andamiPath = (new File(Launcher.class.getResource(".").getFile() + File.separator + ".." + File.separator + ".." + File.separator +"..")).getAbsolutePath(); |
|
74 |
} |
|
75 |
} catch (Exception e1) { |
|
76 |
andamiPath = (String)props.get("user.dir"); |
|
70 | 77 |
} |
71 | 78 |
try { |
72 |
extensionsPath = (new File(Launcher.getAndamiConfig().getPluginsDirectory())).getCanonicalPath(); |
|
73 |
} catch (IOException e) { |
|
74 |
extensionsPath = (new File(Launcher.getAndamiConfig().getPluginsDirectory())).getAbsolutePath(); |
|
79 |
try { |
|
80 |
extensionsPath = (new File(Launcher.getAndamiConfig().getPluginsDirectory())).getCanonicalPath(); |
|
81 |
} catch (IOException e) { |
|
82 |
extensionsPath = (new File(Launcher.getAndamiConfig().getPluginsDirectory())).getAbsolutePath(); |
|
83 |
} |
|
84 |
} catch (Exception e1) { |
|
85 |
extensionsPath = "???"; |
|
75 | 86 |
} |
76 | 87 |
|
77 | 88 |
|
78 |
Properties props = System.getProperties(); |
|
89 |
|
|
79 | 90 |
writer.write("gvSIG version: " + Version.longFormat() + "\n"); |
80 | 91 |
writer.write(" gvSIG app exec path: " + andamiPath + "\n"); |
81 | 92 |
writer.write(" gvSIG user app home: " + Launcher.getAppHomeDir() + "\n"); |
... | ... | |
87 | 98 |
writer.write("JAVA vendor: " + props.get("java.vendor") + "\n"); |
88 | 99 |
writer.write(" version:" +props.get("java.version")+ "\n"); |
89 | 100 |
writer.write(" home: " + props.get("java.home") + "\n"); |
90 |
|
|
101 |
//if (props.get("os.name").toLowerCase().equals("linux")) |
|
91 | 102 |
return writer.toString(); |
92 | 103 |
} |
93 | 104 |
|
Also available in: Unified diff