|
|
@ -14,8 +14,9 @@ import java.io.File; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class DesignerLauncher { |
|
|
|
public class DesignerLauncher { |
|
|
|
|
|
|
|
|
|
|
|
private static final String BIN_HOME = ".".equals(StableUtils.getInstallHome()) ? |
|
|
|
private static final String BIN = "bin"; |
|
|
|
"." : StableUtils.getInstallHome() + File.separator + "bin"; |
|
|
|
private static final String DOT ="."; |
|
|
|
|
|
|
|
private static final String BIN_HOME = generateBinHome(); |
|
|
|
|
|
|
|
|
|
|
|
private static final DesignerLauncher INSTANCE = new DesignerLauncher(); |
|
|
|
private static final DesignerLauncher INSTANCE = new DesignerLauncher(); |
|
|
|
|
|
|
|
|
|
|
@ -25,6 +26,11 @@ public class DesignerLauncher { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static String generateBinHome() { |
|
|
|
|
|
|
|
return DOT.equals(StableUtils.getInstallHome()) ? |
|
|
|
|
|
|
|
DOT : StableUtils.getInstallHome() + File.separator + BIN; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static DesignerLauncher getInstance() { |
|
|
|
public static DesignerLauncher getInstance() { |
|
|
|
return INSTANCE; |
|
|
|
return INSTANCE; |
|
|
|
} |
|
|
|
} |
|
|
|