[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[eclipse-dev] Eclipse creates runtime-workspace in common area
|
I've come across a problem with Eclipse trying to create a directory
under its install dir.
When you have a plug-in project and select Run > Run As > Run-time
workbench, a directory called runtime-workspace is created beneath the
directory where Eclipse itself is installed. Clearly, this cannot
work on a multi-user system where that directory is shared between
users, but I'm not sure where the runtime-workspace directory should
go.
I would have expected any scratch area that Eclipse creates must be
below the data area specified by "-data". This patch puts the
runtime-workspace there.
Andrew.
Index: BasicLauncherTab.java
===================================================================
RCS file: /usr/cygnus/eclipse-cvsroot/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/BasicLauncherTab.java,v
retrieving revision 1.3
diff -c -2 -p -r1.3 BasicLauncherTab.java
*** BasicLauncherTab.java 30 Sep 2002 14:56:52 -0000 1.3
--- BasicLauncherTab.java 9 Oct 2002 13:46:14 -0000
*************** public class BasicLauncherTab
*** 218,226 ****
static String getDefaultWorkspace() {
ExternalModelManager.initializePlatformPath();
! IPath ppath =
! new Path(
! PDECore.getDefault().getPluginPreferences().getString(
! ICoreConstants.PLATFORM_PATH));
! IPath runtimeWorkspace = ppath.append(RT_WORKSPACE);
return runtimeWorkspace.toOSString();
}
--- 218,222 ----
static String getDefaultWorkspace() {
ExternalModelManager.initializePlatformPath();
! IPath runtimeWorkspace = Platform.getLocation().append(RT_WORKSPACE);
return runtimeWorkspace.toOSString();
}