Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Recoskie2011-07-26 20:44:39 +0000
committerChris Recoskie2011-07-26 20:44:39 +0000
commit983c100d63dd2fa8372ccdae0585af74e886c848 (patch)
tree0f2727232272f001d7079bab7d09c7ccb737cb1d
parent673d559f90b08f6995fabc8b8bd6cc79e3c757c0 (diff)
downloadorg.eclipse.cdt-983c100d63dd2fa8372ccdae0585af74e886c848.tar.gz
org.eclipse.cdt-983c100d63dd2fa8372ccdae0585af74e886c848.tar.xz
org.eclipse.cdt-983c100d63dd2fa8372ccdae0585af74e886c848.zip
Bug 353113 - BuildDescription class does not behave properly for remote
projects
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/buildmodel/BuildDescription.java25
1 files changed, 5 insertions, 20 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/buildmodel/BuildDescription.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/buildmodel/BuildDescription.java
index 35e92962507..b760a869128 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/buildmodel/BuildDescription.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/buildmodel/BuildDescription.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2010 Intel Corporation and others.
+ * Copyright (c) 2006, 2011 Intel Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -68,6 +68,7 @@ import org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyGenerator2;
import org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyGeneratorType;
import org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyInfo;
import org.eclipse.cdt.managedbuilder.pdomdepgen.PDOMDependencyGenerator;
+import org.eclipse.cdt.utils.EFSExtensionManager;
import org.eclipse.core.filesystem.EFS;
import org.eclipse.core.filesystem.IFileStore;
import org.eclipse.core.filesystem.URIUtil;
@@ -259,16 +260,7 @@ public class BuildDescription implements IBuildDescription {
//return rc.getFullPath();
IPath rcLocation = rc.getLocation();
if(rcLocation == null){
- IPath fullPath = rc.getFullPath();
- rcLocation = calcLocationForFullPath(fullPath);
-// IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
-// IProject proj = root.getProject(fullPath.segment(0));
-// rcLocation = proj.getLocation();
-// if(rcLocation != null){
-// rcLocation = rcLocation.append(fullPath.removeFirstSegments(1));
-// } else {
-// rcLocation = root.getLocation().append(fullPath);
-// }
+ rcLocation = new Path(EFSExtensionManager.getDefault().getPathFromURI(rc.getLocationURI()));
}
return rcLocation;
}
@@ -1067,16 +1059,9 @@ public class BuildDescription implements IBuildDescription {
return null;
}
- try {
- URI newURI = new URI(projURI.getScheme(), projURI.getUserInfo(),
- projURI.getHost(), projURI.getPort(), location.toString(), projURI.getQuery(), projURI
- .getFragment());
- return newURI;
- } catch (URISyntaxException e) {
- ManagedBuilderCorePlugin.log(e);
- }
+ URI newURI = EFSExtensionManager.getDefault().createNewURIFromPath(projURI, location.toString());
+ return newURI;
- return null;
}
private void calculateOutputs(BuildStep action, BuildIOType arg, BuildResource buildRc) throws CoreException {

Back to the top