Ant 构建控制台被 Eclipse 中的依赖项目破坏 [英] Ant build consoles get clobbered by dependent projects in Eclipse

查看:29
本文介绍了Ant 构建控制台被 Eclipse 中的依赖项目破坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Eclipse 中有一组依赖项目,每个项目都有自己的 Ant 构建脚本.如果我在多个项目中进行更改,然后选择全部构建"(Ctrl+B),每个 Ant 构建都会以正确的顺序被调用.但是,如果一个项目出现错误,Eclipse 仍会尝试构建其他项目,并且在此过程中会破坏 Ant 控制台,因此构建错误不再可见.如果我可以打开有问题的项目并选择构建项目",这不会那么烦人,但是 Eclipse 比我聪明:在我打开项目中的某个文件之前它不会重建,编辑并保存(通常我会在光标所在的位置添加和删除空格字符).欢迎回答以下任何问题.

I have a set of dependent projects in Eclipse, each with its own Ant build script. If I make a change in multiple projects, then select "Build All" (Ctrl+B), each Ant build is invoked in the correct order. But if there is an error in one project, Eclipse still tries to build the other projects also, and in the process clobbers the Ant console so that the build errors are no longer visible. This wouldn't be quite so annoying if I could open up the offending project and select "Build Project", but Eclipse out-smarts me: it won't rebuild until I open some file in the project, edit it, and save (typically I add and remove a space character wherever my cursor happens to be). An answer to any of the following questions would be welcome.

我如何将 Eclipse 配置为(按优先顺序):

How can I configure Eclipse to (in preference order):

  1. 一旦任何项目的 Ant 构建失败,就终止全部构建"?
  2. 为Build All"保存all控制台输出,而不是为每个项目重置控制台?
  3. 为每个新的 Ant 实例生成一个单独的控制台?
  4. 允许我强制执行构建项目",即使它认为没有任何变化?
  1. terminate a "Build All" as soon as any project's Ant build fails?
  2. save all console output for "Build All" instead of resetting the console for each project?
  3. spawn a separate console for each new instance of Ant?
  4. allow me to force a "Build Project" even if it doesn't think anything has changed?

[更新] 奖励问题:

  • 如何配置 Eclipse 以便修复依赖项目中的任何构建错误就构建项目"而言算作更改"?

推荐答案

您是否尝试过通过运行配置将标准输出重定向到文件?如果没有,请提供一些屏幕截图以帮助...(您可以尝试附加"这不在我的屏幕截图中:) )

Have you tried redirecting standard out to file via a run configuration? A few screen shots to help if not... (you may try 'append' this is not in my screen shot :) )

这篇关于Ant 构建控制台被 Eclipse 中的依赖项目破坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆