使用命令行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屋!