使用命令行 Ant 构建 Eclipse Ant 项目 [英] Use command-line Ant to build Eclipse Ant project
问题描述
对于我当前的项目,我需要运行 Java 项目的构建.但是对于我正在执行的当前任务,Eclipse 根本没有帮助.我需要的所有工具都没有集成在 Eclipse 中,我在 Eclipse 中所做的一切都是单击 Ant 任务.那么有没有办法直接通过命令行来做到这一点?
For my current project I need to run the build of our Java projects. But for the current task I am doing, Eclipse is not helping at all. All tools I need are not integrated in Eclipse, everything I do in Eclipse is clicking the Ant tasks. So is there a way to just do it by command line?
简单地调用 Ant 的命令参数是行不通的.
Simply calling the command arguments for Ant does not work.
我在 Ubuntu Linux 上运行.
I am running on Ubuntu Linux.
推荐答案
您可以使用以下命令调用命令行构建器.
You can invoke the command-line builder with the following command.
eclipsec -nosplash -application org.eclipse.jdt.apt.core.aptBuild -data %WORKSPACE%
更多信息参见在 Eclipse 中使用 APT 进行无头构建.
For more information see Headless Building with APT in Eclipse.
这篇关于使用命令行 Ant 构建 Eclipse Ant 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!