Is there any command to create an eclipse
workspace without actually launching eclipse
? I want the command be part of script. After the workspace is created, it will be configured (e.g., text encoding) then will be used to import project to RTC
. I know below command is able to crate a new workspace. But the command also tries to import or build or clear-Build a project, which is not I 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}
What I want is just a simple command to create a new workspace, nothing else (no importing, no building, no launching eclipse
)? How can I do it?
1 Answer. Go under preferences then type " workspace " in the search box provided to filter the list. Alternatively you can go to General>Startup and Shutdown>Workspaces. There you can set a flag to make Eclipse prompt you to select a workspace at startup by checking the "Prompt for workspace at startup" checkbox.
Just create an empty folder. There is really nothing else you need for an empty workspace.
Edit: If you need preferences as well create sub folders .metadata\.plugins\org.eclipse.core.runtime\.settings
and let your script write .prefs
files with the settings that you need. Look at the .prefs
files of an existing workspace to see how they should look.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With