在运行 Ant 任务之前阻止 Eclipse 构建项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20256480/
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 21:21:38  来源:igfitidea点击:

Prevent eclipse from building the projects before run an Ant task

eclipseantbuildlaunch

提问by thiagoh

I want to prevent the project from compiling when I run an Ant task, how is this done?

我想在运行 Ant 任务时阻止项目编译,这是怎么做的?

Eclipse build setting is not automatic but the build still remains running before any ant task be launched.

Eclipse 构建设置不是自动的,但在启动任何 ant 任务之前构建仍然保持运行。

回答by thiagoh

You can turn off "Build (if required) before launch"

你可以关掉 "Build (if required) before launch"

You have turned rebuild off for resource modification but I believe you haven't turned off "Build (if required) before launch"

你已经关闭了资源修改的重建,但我相信你还没有关闭 "Build (if required) before launch"

Go to:

去:

Window > Preferences > Run/Debug > Launching -> Build (if required) before launching

Window > Preferences > Run/Debug > Launching -> Build (if required) before launching

On older versions of eclipse:

在旧版本的 eclipse 上:

Window > Preferences > Run/Debug > Build (if required) before launching

Window > Preferences > Run/Debug > Build (if required) before launching

回答by Andy Guibert

In newer versions of Eclipse (I have Neon) the option has moved slightly to:

在较新版本的 Eclipse(我有 Neon)中,该选项略微移动到:

Window > Preferences > Run/Debug > Launching

Window > Preferences > Run/Debug > Launching

The checkbox is still named: Build (if required) before launching.

该复选框仍命名为:Build (if required) before launching