Community
Participate
Working Groups
I have an Eclipse IDE running on a workspace. If I attempt to start an other IDE on the same workspace I immediately get the message "Workspace in use or cannot be created, choose a different one". So far so good. Now I start another Eclipse to run an ant-script.Again on the same workspace: /tools/eclipse -consolelog -nosplash -data /workspace -application org.eclipse.ant.core.antRunner -buildfile /workspace/some.project/build.xml This command runs from start to finish without problems regardless of if I have another IDE running on the same workspace or not. I would expect it to fail when another instance is running and it's sometimes fatal that it doesn.t. Fatal in that it crashes the workspace so that I cannot restart the IDE on it.
I'm not aware of the history on this. DJ or John, do you know if/how the Ant application entry point should/could consider the workspace lock?
Yes, all applications that manipulate the platform instance location should be locking it when they start. For a headless application this is as simple as: Location instance = Platform.getInstanceLocation(); if (instance == null) ... throw exception, instance location was not set if (!instance.lock()) ... throw exception, instance location could not be locked
So this is rather serious given that many ant applications indeed do manipulate the workspace and it's meta-data. I'm thinking about tasks like eclipse.incrementalBuild and eclipse.refreshLocal.
Possible duplicate of bug 262685.
*** This bug has been marked as a duplicate of bug 262685 ***