问题描述
我有和的.project一个.cproject Eclipse项目,我想自动化建设过程中,因为它我用
I have a eclipse project with .project and .cproject, and I want automate the building process, for it I use
./日食-nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data / home / user中/工作区/ -build应用
./eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data /home/user/workspace/ -build App
但它不使用.cproject文件构建,我该怎么做了建设过程中使用.cproject配置?
but it don't use the .cproject file to build, how I make for the building process use the .cproject configuration?
感谢
推荐答案
如果你的项目是一个生成文件的项目,然后简单地做什么弗朗索瓦在评论中说。
If your project is a makefile project then simply do what Francois said in the comments.
如果您正在寻找在试图建立一个特定的配置,这取决于其CDT版本你有,因为如果你能做到这一点。
If you are looking at trying to build a specific configuration, it depends on which CDT Version you have, as if you can do that.
默认情况下,无头的建设者将建立在项目中指定的所有配置。在工作中我们有原来的CDT 7.0版本,一个不支持建立一个特定的配置,但我在CDT 7.0音符都看到,它并支持建立一个特定的配置。你会做,通过使用 -build应用程序/配置
,而不是仅仅的 -build应用
By default the headless builder will build ALL configurations specified in the project. At work we have the original CDT 7.0 version and that one did not support building a specific configuration, but I do see in the notes on CDT 7.0 that it does support building a specific configuration. You would do that by using -build App/Config
instead of just -build App
.
(注:在家里我已经与日食CDT 7.0.2,并且不支持特定配置的无头构建如上,虽然使用信息仍然没有显示它的支持,以及即将到来的CDT 8.0不正确显示使用信息)。
(Note: at home I have eclipse with CDT 7.0.2 and that does support the headless build of a specific configuration as above, although the usage info still doesn't show support for it, and the upcoming CDT 8.0 does correctly show the usage information).
这篇关于无头的构建与使用CDT .cproject配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!