Use command-line Ant to build Eclipse Ant project

[亡魂溺海] 提交于 2020-01-03 03:01:59

问题


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?

Simply calling the command arguments for Ant does not work.

I am running on Ubuntu Linux.


回答1:


You can invoke the command-line builder with the following command.

eclipsec -nosplash -application org.eclipse.jdt.apt.core.aptBuild -data %WORKSPACE%

For more information see Headless Building with APT in Eclipse.



来源:https://stackoverflow.com/questions/4451569/use-command-line-ant-to-build-eclipse-ant-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!