|
@@ -291,9 +291,10 @@ public class LoadController {
|
|
|
|
|
|
private String refreshPath(String image) {
|
|
|
// TODO Auto-generated method stub
|
|
|
- if(!image.contains("/HolonGUI/"))
|
|
|
+ if (!image.contains("/HolonGUI/"))
|
|
|
return image;
|
|
|
- return (System.getProperty("user.home") + image.substring(image.indexOf("/HolonGUI/"), image.length())).replace("\\", "/");
|
|
|
+ return (System.getProperty("user.home") + image.substring(image.indexOf("/HolonGUI/"), image.length()))
|
|
|
+ .replace("\\", "/");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -497,7 +498,7 @@ public class LoadController {
|
|
|
|
|
|
ArchiveEntry entry = stream.getNextEntry();
|
|
|
while (entry != null) {
|
|
|
-// String entryName = checkOS(entry.getName());
|
|
|
+ // String entryName = checkOS(entry.getName());
|
|
|
File file = new File(tmp, entry.getName());
|
|
|
file.getParentFile().mkdirs();
|
|
|
OutputStream output = new FileOutputStream(file);
|
|
@@ -518,27 +519,27 @@ public class LoadController {
|
|
|
String os = System.getProperty("os.name").toLowerCase();
|
|
|
String ret = entryName;
|
|
|
String partition = System.getProperty("user.home");
|
|
|
-
|
|
|
- if(!ret.contains("HolonGUI"))
|
|
|
+
|
|
|
+ if (!ret.contains("HolonGUI"))
|
|
|
return ret;
|
|
|
|
|
|
if (os.contains("windows")) {
|
|
|
ret = ret.replace("/", "\\");
|
|
|
ret = System.getProperty("user.home") + ret.substring(ret.indexOf("\\HolonGUI\\"), ret.length());
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
if (os.contains("mac")) {
|
|
|
- //dosmth
|
|
|
+ // dosmth
|
|
|
ret = ret.replace("\\", "/");
|
|
|
ret = System.getProperty("user.home") + ret.substring(ret.indexOf("/HolonGUI/"), ret.length());
|
|
|
}
|
|
|
if (os.contains("linux")) {
|
|
|
- //dosmth
|
|
|
+ // dosmth
|
|
|
ret = ret.replace("\\", "/");
|
|
|
ret = System.getProperty("user.home") + ret.substring(ret.indexOf("/HolonGUI/"), ret.length());
|
|
|
}
|
|
|
- if(os.contains("solaris")) {
|
|
|
- //dosmth
|
|
|
+ if (os.contains("solaris")) {
|
|
|
+ // dosmth
|
|
|
}
|
|
|
return ret;
|
|
|
}
|