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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 19:29:39  来源:igfitidea点击:

Eclipse stops console from clearing

javaeclipsemavenconsole

提问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 控制台清除如下:

  1. Select Window ? Preferencesto show the Preferencesdialog
  2. Expand Run/debug
  3. Select Console
  4. Uncheck Limit Console output
  5. Click OKto accept the new preferences and close the dialog
  1. 选择窗口?首选项,以显示首选项对话框
  2. 展开运行/调试
  3. 选择控制台
  4. 取消选中限制控制台输出
  5. 单击确定接受新的首选项并关闭对话框

enter image description here

在此处输入图片说明

回答by Kai

There are different types of consoles. You have a Consolewhich contains the output of your Java programs, there is also a Maven consolewhich contains the output of the Maven plug-in.

有不同类型的控制台。有一个Console包含 Java 程序的输出,还有一个Maven console包含 Maven 插件的输出。

enter image description here

在此处输入图片说明

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 Configurationsdialog on the Commontab.

要保留控制台输出,您可以将应用程序的输出重定向到文件。您可以Run ConfigurationsCommon选项卡上的对话框中执行此操作。

回答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