问题
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