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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,561 Views
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

Labels (1)
0 Kudos
1 Solution
1,391 Views
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

View solution in original post

0 Kudos
4 Replies
1,391 Views
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 Kudos
1,391 Views
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 Kudos
1,390 Views
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 Kudos
1,392 Views
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 Kudos