How to create an eclipse command line workspace without actually launching eclipse?

Is there any command to create an eclipse workspace without running eclipse ? I want the command to be part of the script. After creating the workspace, it will be configured (for example, text encoding), and then it will be used to import the project into RTC . I know that below the team can create a new workspace. But the team is also trying to import or build or clean. Create a project that I do not want.

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

I want just a simple command to create a new workspace, nothing else (without import, without building, without running eclipse )? How can i do this?

+7
source share
1 answer

Just create an empty folder. For an empty workspace, you don’t need anything else.

Edit: If you need settings, also create subfolders of .metadata\.plugins\org.eclipse.core.runtime\.settings and let your script write .prefs files with the necessary settings. Look at the .prefs files of .prefs existing workspace to see how they should look.

+3
source

All Articles