Browse Source

REPORT-19946 Linux设计器

feature/big-screen
pengda 5 years ago
parent
commit
8eac548286
  1. 1
      designer-base/src/main/java/com/fr/design/os/impl/DemoAction.java
  2. 1
      designer-base/src/main/java/com/fr/design/os/impl/RestartAction.java

1
designer-base/src/main/java/com/fr/design/os/impl/DemoAction.java

@ -21,7 +21,6 @@ public class DemoAction implements OSBasedAction {
} }
String executorPath; String executorPath;
if (OperatingSystem.isMacos()) { if (OperatingSystem.isMacos()) {
executorPath = StableUtils.pathJoin(installHome, "bin", "designer.app"); executorPath = StableUtils.pathJoin(installHome, "bin", "designer.app");
} else if(OperatingSystem.isWindows()){ } else if(OperatingSystem.isWindows()){

1
designer-base/src/main/java/com/fr/design/os/impl/RestartAction.java

@ -65,7 +65,6 @@ public class RestartAction implements OSBasedAction {
private static void restartInLinux(String installHome, String[] filesToBeDelete) throws Exception { private static void restartInLinux(String installHome, String[] filesToBeDelete) throws Exception {
ProcessBuilder builder = new ProcessBuilder(); ProcessBuilder builder = new ProcessBuilder();
List<String> commands = new ArrayList<String>(); List<String> commands = new ArrayList<String>();
//现在先写的是restart.sh
commands.add(installHome + File.separator + "bin" + File.separator + "restart"); commands.add(installHome + File.separator + "bin" + File.separator + "restart");
if (ArrayUtils.isNotEmpty(filesToBeDelete)) { if (ArrayUtils.isNotEmpty(filesToBeDelete)) {
commands.add(StableUtils.join(filesToBeDelete, "+")); commands.add(StableUtils.join(filesToBeDelete, "+"));

Loading…
Cancel
Save