Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2011-01-24 17:55:59 +0000
committerMichael Rennie2011-01-24 17:55:59 +0000
commit5884fa2db59691324b3b0bf98f6e51cef90e541f (patch)
tree0b0fba94b6d6d28eacb3d5fc3530ee20cf0681ec /org.eclipse.ui.externaltools/External Tools Base/org
parent0dd74f6c8fdad3a11ee0fb7a2016943c37e9477d (diff)
downloadeclipse.platform.debug-5884fa2db59691324b3b0bf98f6e51cef90e541f.tar.gz
eclipse.platform.debug-5884fa2db59691324b3b0bf98f6e51cef90e541f.tar.xz
eclipse.platform.debug-5884fa2db59691324b3b0bf98f6e51cef90e541f.zip
Bug 114563 - [launching] [builders] Ant Builder doesn't build with Target set to <default>
Diffstat (limited to 'org.eclipse.ui.externaltools/External Tools Base/org')
-rw-r--r--org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuilderTab.java27
1 files changed, 19 insertions, 8 deletions
diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuilderTab.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuilderTab.java
index 5b0c0a46b..004f08059 100644
--- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuilderTab.java
+++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuilderTab.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 IBM 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
@@ -12,6 +12,9 @@
package org.eclipse.ui.externaltools.internal.launchConfigurations;
+import java.util.HashSet;
+import java.util.Iterator;
+
import org.eclipse.core.externaltools.internal.IExternalToolConstants;
import org.eclipse.core.externaltools.internal.launchConfigurations.ExternalToolsCoreUtil;
import org.eclipse.core.resources.IResource;
@@ -387,25 +390,33 @@ public class ExternalToolsBuilderTab extends AbstractLaunchConfigurationTab {
fVariables.setEnabled(haveOutputFile);
fAppend.setEnabled(haveOutputFile);
}
-
+
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
public void performApply(ILaunchConfigurationWorkingCopy configuration) {
if (fCreateBuildScheduleComponent) {
- StringBuffer buffer= new StringBuffer();
+ HashSet kinds = new HashSet(4);
if (afterClean.getSelection()) {
- buffer.append(IExternalToolConstants.BUILD_TYPE_FULL).append(',');
+ kinds.add(IExternalToolConstants.BUILD_TYPE_FULL);
}
- if (manualBuild.getSelection()){
- buffer.append(IExternalToolConstants.BUILD_TYPE_INCREMENTAL).append(',');
+ if(manualBuild.getSelection()){
+ kinds.add(IExternalToolConstants.BUILD_TYPE_FULL);
+ kinds.add(IExternalToolConstants.BUILD_TYPE_INCREMENTAL);
}
if (autoBuildButton.getSelection()) {
- buffer.append(IExternalToolConstants.BUILD_TYPE_AUTO).append(',');
+ kinds.add(IExternalToolConstants.BUILD_TYPE_AUTO);
}
if (fDuringClean.getSelection()) {
- buffer.append(IExternalToolConstants.BUILD_TYPE_CLEAN);
+ kinds.add(IExternalToolConstants.BUILD_TYPE_CLEAN);
+ }
+ StringBuffer buffer= new StringBuffer();
+ for(Iterator i = kinds.iterator(); i.hasNext();) {
+ buffer.append(i.next());
+ if(i.hasNext()) {
+ buffer.append(',');
+ }
}
configuration.setAttribute(IExternalToolConstants.ATTR_RUN_BUILD_KINDS, buffer.toString());
}

Back to the top