gunnarx / franca_install_automation

Private repo NOT CURRENTLY SUPPORTED - I recommend to refer to (http://github.com/genivi/eclipse_install_automation). Scripted installation of Eclipse+Franca Tools on a machine, or creation of a new Virtual Machine image. Please read README.md for instructions on which branch to use and known bugs.
Mozilla Public License 2.0
5 stars 4 forks source link

Automate import of franca examples into the workspace #5

Open gunnarx opened 9 years ago

gunnarx commented 9 years ago

Maybe it is possible to automate the import of the franca example files into the workspace.

Where are the workspace / current project settings stored in Eclipse?

Ideas?

This needs to be done after "Automatic configuration of workspace"

kbirken commented 9 years ago

For an Eclipse instance with CDT, it can be done like this:

eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import {[uri:/]/path/to/project} -build {project_name | all} -cleanBuild {projec_name | all}

For Eclipse without CDT, there seems to be no out-of-the-box mechanism. Instead, the import mechanism has to be implemented by an additional plug-in and then used from command line. Here is plug-in that can do this (and also can call the build for those projects, if necessary):

https://github.com/spektom/eclipse-import

If franca_install_automation should be available for non-CDT Eclipse versions, the second way has to be implemented anyway. Seems to be quite some effort... (we could build the spektom plug-in locally and put the jar file into our repo).

gunnarx commented 9 years ago

Thanks Klaus!

As you noted elsewhere CDT is a req for CommonAPI. This project is developing towards a quite complete dev environment so I'm quite sure I will always want to include CDT eventually. But there is also the option to maintain multiple branches and do this only where CDT is included.

I'll keep it open and when there is time try this using the CDT solution.