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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,619件の閲覧回数
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 解決策
1,449件の閲覧回数
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 返答(返信)
1,449件の閲覧回数
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 件の賞賛
1,449件の閲覧回数
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 件の賞賛
1,448件の閲覧回数
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 件の賞賛
1,450件の閲覧回数
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 件の賞賛