问题描述
有没有一种方法,而Ant构建运行在Eclipse中自动禁用自动生成设置?
- 应该倾听一个Ant任务正在启动
- 检查是否启用该设置
- 暂时禁用
- 听的Ant构建完成
- 恢复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?
- It should listen for an ant task being started
- check if the setting is enabled
- disable it temporarily
- listen for the ant build to finish
- 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建设;蚂蚁运行期间日食的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!