Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2011-02-11 17:17:22 +0000
committerMichael Rennie2011-02-11 17:17:22 +0000
commit969a3f02be8af4ab92f4f991aafdc887209b6cbf (patch)
tree0f8dcc255dfa7e2aae50bc103ceb6f3048a86ad4 /org.eclipse.ui.externaltools
parent7b9df4346d5066d82b499d08791cd59144c1bab9 (diff)
downloadeclipse.platform.debug-969a3f02be8af4ab92f4f991aafdc887209b6cbf.tar.gz
eclipse.platform.debug-969a3f02be8af4ab92f4f991aafdc887209b6cbf.tar.xz
eclipse.platform.debug-969a3f02be8af4ab92f4f991aafdc887209b6cbf.zip
Bug 114563 - [launching] [builders] Ant Builder doesn't build with Target set to <default>
Diffstat (limited to 'org.eclipse.ui.externaltools')
-rw-r--r--org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuilderTab.java27
1 files changed, 8 insertions, 19 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 2b53abfd7..bd32a5e5b 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, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2009 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,9 +12,6 @@
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;
@@ -390,33 +387,25 @@ 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) {
- HashSet kinds = new HashSet(4);
+ StringBuffer buffer= new StringBuffer();
if (afterClean.getSelection()) {
- kinds.add(IExternalToolConstants.BUILD_TYPE_FULL);
+ buffer.append(IExternalToolConstants.BUILD_TYPE_FULL).append(',');
}
- if(manualBuild.getSelection()){
- kinds.add(IExternalToolConstants.BUILD_TYPE_FULL);
- kinds.add(IExternalToolConstants.BUILD_TYPE_INCREMENTAL);
+ if (manualBuild.getSelection()){
+ buffer.append(IExternalToolConstants.BUILD_TYPE_INCREMENTAL).append(',');
}
if (autoBuildButton.getSelection()) {
- kinds.add(IExternalToolConstants.BUILD_TYPE_AUTO);
+ buffer.append(IExternalToolConstants.BUILD_TYPE_AUTO).append(',');
}
if (fDuringClean.getSelection()) {
- 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(',');
- }
+ buffer.append(IExternalToolConstants.BUILD_TYPE_CLEAN);
}
configuration.setAttribute(IExternalToolConstants.ATTR_RUN_BUILD_KINDS, buffer.toString());
}

Back to the top