本文介绍了自动禁用"自动&QUOT建设;蚂蚁运行期间日食的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法,而Ant构建运行在Eclipse中自动禁用自动生成设置?


  1. 应该倾听一个Ant任务正在启动

  2. 检查是否启用该设置

  3. 暂时禁用

  4. 听的Ant构建完成

  5. 恢复previous设置

我想有这一点,因为有这使让我的Ant构建需要约10分钟,有禁用此设置让它在完成〜5分钟。我经常忘记随时更改设置,所以我浪费了很多时间等待。有了这个自动将改善我的生成周期。

如果有什么在那里呢,我愿意写一个插件此。在这种情况下,没有任何人有关于如何监听事件,并更改设置指针? :)

修改

我想解决这个问题的手动启动蚂蚁通过右键单击build.xml文件,然后点击运行为建立 - > Ant构建。我没有在我的Eclipse项目的配置使用ant建设者。


解决方案

我建议你缩小你真正想要在Ant生成器的刷新刷新设置页

和/或移动的Ant生成器落后于建设者的Java建设者配置。

Is there a way to automatically disable the "build automatically" setting in eclipse while an ant build is running?

  1. It should listen for an ant task being started
  2. check if the setting is enabled
  3. disable it temporarily
  4. listen for the ant build to finish
  5. restore the previous setting

I would like to have this, because having this enabled makes my ant build take ~10 minutes and having this setting disabled lets it finish in ~5 minutes. I often forget to always change the setting and so I waste lots of time waiting. Having this automated would improve my build-cycles.

If there is nothing out there yet, I would be willing to write a plugin for this. In that case does anyone have pointers about how to listen for the events and change the setting? :)

EDIT:

I want to fix this for manually started ant builds via right clicking the build.xml and clicking run as -> ant build. I do not use ant builders in my eclipse project configuration.

解决方案

I suggest that you narrow down what resources you actually want to refresh in the Ant Builder's Refresh tab

and/or move Ant Builder behind Java builder in the Builders configuration.

这篇关于自动禁用"自动&QUOT建设;蚂蚁运行期间日食的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 01:55