|
|
@ -69,7 +69,9 @@ public class DesignUtils { |
|
|
|
|
|
|
|
|
|
|
|
private static Integer port; |
|
|
|
private static Integer port; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final String TURE = "true"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final String DEBUG = "debug"; |
|
|
|
private static boolean started = false; |
|
|
|
private static boolean started = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -82,7 +84,7 @@ public class DesignUtils { |
|
|
|
|
|
|
|
|
|
|
|
public synchronized static int getPort() { |
|
|
|
public synchronized static int getPort() { |
|
|
|
if (port == null) { |
|
|
|
if (port == null) { |
|
|
|
if (ComparatorUtils.equals("true", System.getProperty("debug"))) { |
|
|
|
if (ComparatorUtils.equals(TURE, System.getProperty(DEBUG))) { |
|
|
|
setPort(DesignerPort.getInstance().getDebugMessagePort()); |
|
|
|
setPort(DesignerPort.getInstance().getDebugMessagePort()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setPort(DesignerPort.getInstance().getMessagePort()); |
|
|
|
setPort(DesignerPort.getInstance().getMessagePort()); |
|
|
|