Cleaning up the workspace (without re-building)
If you ever wanted to copy the full workspace to another machine you may have noticed that a billion generated files (e.g. bin) are copied and that this takes a long time. If you start Eclipse with the -clean option the workspace will regenerate all file again.
You can avoid this bye de-selecting in the “Build automatically” in the preferences under General -> Workspace.
If you now select Project -> Clean -> All and de-select “Start an Build automatically” in the dialog you end up with a workspace without the files of the build process.
Filed under: Eclipse

August 17th, 2010 at 3:10 pm
-clean argument has nothing to do with the workspace. It’s an OSGi argument (equivalent to -osgi.clean) that is used to clear all the cached date (bundle resources of JAR’ed bundles, resolution state, etc.)
It is specified as is (Eclipse Help, “Eclipse Runtime Options”)
“osgi.clean
if set to “true”, any cached data used by the OSGi framework and eclipse runtime will be wiped clean. This will clean the caches used to store bundle dependency resolution and eclipse extension registry data. Using this option will force eclipse to reinitialize these caches.”
Anyways, I hope you’re doing well, Lars
August 17th, 2010 at 3:17 pm
Thanks for the clarification Benjamin.
August 17th, 2010 at 9:04 pm
Lars: Did you encounter a faster copy of the full workspace you mentionend in the beginning of the post?
August 18th, 2010 at 8:34 am
@Gilles: yes