Eclipse 停止控制台清除
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13579869/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse stops console from clearing
提问by zimZille
I'm having problems with Eclipse automatically clearing the console after doing Maven builds. This doesn't seem to happen all the time, but because of this I can't see the results. Does anybody know how to change this behavior?
在执行 Maven 构建后,我遇到了 Eclipse 自动清除控制台的问题。这似乎并不总是发生,但因此我看不到结果。有人知道如何改变这种行为吗?
回答by Anil kumar
Prevent the Eclipse console from clearing as follows:
防止 Eclipse 控制台清除如下:
- Select Window ? Preferencesto show the Preferencesdialog
- Expand Run/debug
- Select Console
- Uncheck Limit Console output
- Click OKto accept the new preferences and close the dialog
- 选择窗口?首选项,以显示首选项对话框
- 展开运行/调试
- 选择控制台
- 取消选中限制控制台输出
- 单击确定接受新的首选项并关闭对话框
回答by Kai
There are different types of consoles. You have a Console
which contains the output of your Java programs, there is also a Maven console
which contains the output of the Maven plug-in.
有不同类型的控制台。有一个Console
包含 Java 程序的输出,还有一个Maven console
包含 Maven 插件的输出。
Besides there are other console types like an SVN console...
此外还有其他控制台类型,如 SVN 控制台......
To keep the console output you could redirect the output of your applications to a file. You can do this in the Run Configurations
dialog on the Common
tab.
要保留控制台输出,您可以将应用程序的输出重定向到文件。您可以Run Configurations
在Common
选项卡上的对话框中执行此操作。
回答by zimZille
I found the solution myself, I had the ant-builder enabled in a part of my program, and this causes the consoles to disappear.
我自己找到了解决方案,我在我的程序的一部分中启用了 ant-builder,这导致控制台消失。
Right click project => properties => builders => disable the ant builder
右键项目 => 属性 => builders => 禁用 ant builder