简体   繁体   English

如何使用新的运行配置通过Eclipse自动更新Ant构建的目标

[英]How to automatically update Targets for an Ant build via Eclipse with new run configurations

We are creating some JUnit tests as part of QA development. 作为QA开发的一部分,我们正在创建一些JUnit测试。 So we are doing this daily and while running individual tests, or part of a package, they do appear under the Run arrow: 因此,我们每天都要这样做,并且在运行单个测试或包的一部分时,它们确实会出现在“运行”箭头下:

最新运行文件

they do not appear in the Ant build Targets: 它们不会出现在Ant构建目标中:

蚂蚁目标

Well.. you can see that the Schedules_Load appears but that's because I have exported the Ant build again. 好..您可以看到Schedules_Load出现了,但这是因为我再次导出了Ant构建。

Note that even if I create Run configurations using the Eclipse menu: 请注意,即使我使用Eclipse菜单创建“运行”配置:

运行配置

It still doesn't update my Ant Targets list.. 它仍然不会更新我的Ant Targets列表。

Under the menu item Project I do have Build automatically checked but don't think it makes any difference anyway, just thought I would mention it. 在菜单项“项目”下,我确实自动检查了“构建”,但是无论如何都认为它没有任何区别,只是以为我会提到它。

So is there any way to automatically update Ant targets with new run configurations without having to export the Ant build again? 那么,有什么方法可以用新的运行配置自动更新Ant目标,而不必再次导出Ant构建?

Thanks. 谢谢。

try selecting the check-box: "Refresh automatically" . 请尝试选择复选框: “自动刷新”

 Window->Preferences->General->Workspace->"Refresh automatically"  

图形用户界面
(source: avajava.com ) (来源: avajava.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM