Use command-line Ant to build Eclipse Ant project
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 Eclip开发者_如何学编程se, 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.
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.
精彩评论