问题描述
我们都知道 IDEA 有一个 maven intellij 插件。当我们双击“clean”这样的按钮时,“clean”的过程如下图所示: The clean procedure is shown
在我的插件开发中,我还创建了一个按钮,它的作用是双击并执行一些命令。
在我尝试使用的按钮操作中:
Process process = null;
try {
String cmd = "mvn clean";
process = runtime.exec(cmd);
System.out.println(cmd);
process.waitFor();
process.destroy();
} catch (IOException | InterruptedException e1) {
e1.printstacktrace();
但是我执行之后,"mvn clean"就被完全执行了,而程序没有显示在下面。
那么我的问题是:我提供的图片中,有没有java.swing组件或者方法可以达到上面的效果?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)