diff options
author | David Inglis | 2003-08-18 15:59:42 +0000 |
---|---|---|
committer | David Inglis | 2003-08-18 15:59:42 +0000 |
commit | 61b8cf9771d508846f1f690505307ca90263e6c4 (patch) | |
tree | 2dc4902a197e350c92d1f51a91a767d57619e619 /build | |
parent | a7a2872b91f24ebe635894bc0f02d939318fbbeb (diff) | |
download | org.eclipse.cdt-61b8cf9771d508846f1f690505307ca90263e6c4.tar.gz org.eclipse.cdt-61b8cf9771d508846f1f690505307ca90263e6c4.tar.xz org.eclipse.cdt-61b8cf9771d508846f1f690505307ca90263e6c4.zip |
fix error
Diffstat (limited to 'build')
-rw-r--r-- | build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/actions/UpdateMakeProjectAction.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/actions/UpdateMakeProjectAction.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/actions/UpdateMakeProjectAction.java index b415e81398d..ab6f6827d94 100644 --- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/actions/UpdateMakeProjectAction.java +++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/actions/UpdateMakeProjectAction.java @@ -13,6 +13,9 @@ import java.util.ArrayList; import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.model.ICProject; +import org.eclipse.cdt.make.core.BuildInfoFactory; +import org.eclipse.cdt.make.core.IMakeBuilderInfo; +import org.eclipse.cdt.make.core.MakeBuilder; import org.eclipse.cdt.make.core.MakeCorePlugin; import org.eclipse.cdt.make.core.MakeProjectNature; import org.eclipse.cdt.make.internal.ui.MakeUIPlugin; @@ -23,6 +26,7 @@ import org.eclipse.core.resources.IWorkspaceRunnable; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.OperationCanceledException; +import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.QualifiedName; import org.eclipse.core.runtime.SubProgressMonitor; import org.eclipse.jface.action.IAction; @@ -98,7 +102,7 @@ public class UpdateMakeProjectAction implements IWorkbenchWindowActionDelegate { } catch (InterruptedException e) { return; } catch (InvocationTargetException e) { - MakeUIPlugin.logException(e, "Error", "Error updateing Make Projects"); + MakeUIPlugin.logException(e, "Error", "Error updating Make Projects"); } } @@ -113,11 +117,13 @@ public class UpdateMakeProjectAction implements IWorkbenchWindowActionDelegate { new SubProgressMonitor(monitor, 1)); // add new nature MakeProjectNature.addNature(project[i], new SubProgressMonitor(monitor, 1)); - QualifiedName qlocation = new QualifiedName(CCorePlugin.PLUGIN_ID, "buildLocation"), + QualifiedName qlocation = new QualifiedName(CCorePlugin.PLUGIN_ID, "buildLocation"); String location = project[i].getPersistentProperty(qlocation); - + IMakeBuilderInfo newInfo = BuildInfoFactory.create(project[i], MakeBuilder.BUILDER_ID); + newInfo.setBuildCommand(new Path(location)); + //remove old properties - QualifiedName[] qName = + QualifiedName[] qName = { new QualifiedName(CCorePlugin.PLUGIN_ID, "buildFullArguments"), new QualifiedName(CCorePlugin.PLUGIN_ID, "buildIncrementalArguments"), |