Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2008-02-11 17:22:47 +0000
committerMichael Rennie2008-02-11 17:22:47 +0000
commitfa9eec7948ab36ec3c1133ef39d4cdf12a6fb057 (patch)
tree47082f0a0dc95d4f4f2a14fb64396a1fda8118ed /org.eclipse.debug.core
parentf7caa77459e8d184a002a31479438657cbdccf66 (diff)
downloadeclipse.platform.debug-fa9eec7948ab36ec3c1133ef39d4cdf12a6fb057.tar.gz
eclipse.platform.debug-fa9eec7948ab36ec3c1133ef39d4cdf12a6fb057.tar.xz
eclipse.platform.debug-fa9eec7948ab36ec3c1133ef39d4cdf12a6fb057.zip
Bug 218299
[Import/Export] FileNotFoundException while importing launch configurations
Diffstat (limited to 'org.eclipse.debug.core')
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
index df9cda6e6..1ec3efb83 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
@@ -2512,6 +2512,10 @@ public class LaunchManager extends PlatformObject implements ILaunchManager, IRe
monitor.subTask(MessageFormat.format(DebugCoreMessages.LaunchManager_28, new String[]{source.getName()}));
IPath location = new Path(LOCAL_LAUNCH_CONFIGURATION_CONTAINER_PATH.toOSString()).append(source.getName());
File target = location.toFile();
+ IPath locationdir = location.removeLastSegments(1);
+ if(!locationdir.toFile().exists()) {
+ locationdir.toFile().mkdirs();
+ }
boolean added = !target.exists();
try {
copyFile(source, target);

Back to the top