提交 8afb82ad 编写于 作者: sq3536's avatar sq3536

整改cmd

上级 ff40a4b9
...@@ -261,8 +261,11 @@ public class Generate extends IbizLabGeneratorCommand { ...@@ -261,8 +261,11 @@ public class Generate extends IbizLabGeneratorCommand {
LocalCommandExecutor.getInstance().executeCommand("mvn ibizlabcli:code -f "+ Paths.get(this.output,"generator.xml").toString(),120000); LocalCommandExecutor.getInstance().executeCommand("mvn ibizlabcli:code -f "+ Paths.get(this.output,"generator.xml").toString(),120000);
} }
if(tempDir.exists()) if(tempDir.exists()) {
tempDir.delete(); String osName=System.getProperty("os.name");
if(osName!=null&&(!osName.startsWith("Windows")))
LocalCommandExecutor.getInstance().executeCommand("rm -rf " + tempDir.getAbsolutePath(), 120000);
}
} catch (GeneratorNotFoundException e) { } catch (GeneratorNotFoundException e) {
System.err.println(e.getMessage()); System.err.println(e.getMessage());
System.err.println("[error] Check the spelling of the generator's name and try again."); System.err.println("[error] Check the spelling of the generator's name and try again.");
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册