Is there a way to create a workspace from the command line?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Is there a way to create a workspace from the command line?

跳至解决方案
2,178 次查看
rossrhone
Contributor III

I want to create an automated build for creating a code warrior 10.4 workspace, which includes the .metadata file inside. Is there a IDE out there for it? I have been searching have not been able to find one unless it is labeled as something else that I don't understand.

 

Thanks,

Ross

标签 (1)
0 项奖励
回复
1 解答
2,008 次查看
BlackNight
NXP Employee
NXP Employee

Hi Ross,

The .metadata folder is automatically created when you open the workspace folder with Eclipse. So all what you need is to have an empty folder, launch Eclipse with it and it will add the .metadata.

See as well:

https://mcuoneclipse.com/2014/09/12/building-projects-with-eclipse-from-the-command-line/

https://mcuoneclipse.com/2013/10/26/eclipse-command-line-code-generation-with-processor-expert/

I hope this helps,

Erich

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,008 次查看
rossrhone
Contributor III

Erich,

Is there a way to import a Project file via command line argument? Example I want to import a project.wsd file and then be able to build the entire workspace via command line. Thank you so much for answering all my questions! You have been beyond helpful.

Thanks,

Ross

0 项奖励
回复
2,008 次查看
rossrhone
Contributor III

Erich,

Thank you very much. The command line "ecd -build -data (desired workspace path)" placed the .metadata folder in my desired workspace path. This provided me with the .plugins folder, which inside included only 4 separate folders. (org.eclipse.cdt.core, org.eclipse.cdt.make.core) etc. When I create a workspace from the Codewarrior program itself the workspace contains more .plugins folders, includes a folder called jythoncache, and files (.lock, .log, and version.ini). Is there a commandline interface to replicate that workspace?

Also how do you create a project from the commandline and have it combined with the workspace? Thank you so much helping me learn this as I new to all of this!

Thanks,

Ross

0 项奖励
回复
2,007 次查看
BlackNight
NXP Employee
NXP Employee

Hi Ross,

why do you want to create all the things in the .metadata? You should not worry about it, it is like a cache and data storage for Eclipse, but not used/needed directly by a user.

There is no way to create a new project afaik. You only can import an existing one.

I hope this helps,

Erich

0 项奖励
回复
2,009 次查看
BlackNight
NXP Employee
NXP Employee

Hi Ross,

The .metadata folder is automatically created when you open the workspace folder with Eclipse. So all what you need is to have an empty folder, launch Eclipse with it and it will add the .metadata.

See as well:

https://mcuoneclipse.com/2014/09/12/building-projects-with-eclipse-from-the-command-line/

https://mcuoneclipse.com/2013/10/26/eclipse-command-line-code-generation-with-processor-expert/

I hope this helps,

Erich

0 项奖励
回复