Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2011-02-08 17:26:18 +0000
committerMichael Rennie2011-02-08 17:26:18 +0000
commitdb642047549cbd7bdafd08252f71922d8b303dfd (patch)
tree4246eacb36111a56581d42c1d59e7602677bdf89 /org.eclipse.ui.externaltools/External Tools Base
parent3099741d050836e0c920552cda61547147baee35 (diff)
downloadeclipse.platform.debug-db642047549cbd7bdafd08252f71922d8b303dfd.tar.gz
eclipse.platform.debug-db642047549cbd7bdafd08252f71922d8b303dfd.tar.xz
eclipse.platform.debug-db642047549cbd7bdafd08252f71922d8b303dfd.zip
Revert - Bug 335861 - [launching] [builders] Ant Builder doesn't build with Target set to <default>
Diffstat (limited to 'org.eclipse.ui.externaltools/External Tools Base')
-rw-r--r--org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuilderTab.java39
1 files changed, 14 insertions, 25 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 b96fdc078..38f59a96c 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, 2007 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.resources.IResource;
import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -411,28 +408,20 @@ public class ExternalToolsBuilderTab extends AbstractLaunchConfigurationTab {
*/
public void performApply(ILaunchConfigurationWorkingCopy configuration) {
if (fCreateBuildScheduleComponent) {
- HashSet kinds = new HashSet(4);
- if (afterClean.getSelection()) {
- kinds.add(IExternalToolConstants.BUILD_TYPE_FULL);
- }
- if(manualBuild.getSelection()){
- kinds.add(IExternalToolConstants.BUILD_TYPE_FULL);
- kinds.add(IExternalToolConstants.BUILD_TYPE_INCREMENTAL);
- }
- if (autoBuildButton.getSelection()) {
- kinds.add(IExternalToolConstants.BUILD_TYPE_AUTO);
- }
-
- if (fDuringClean.getSelection()) {
- kinds.add(IExternalToolConstants.BUILD_TYPE_CLEAN);
+ StringBuffer buffer= new StringBuffer();
+ if (afterClean.getSelection()) {
+ buffer.append(IExternalToolConstants.BUILD_TYPE_FULL).append(',');
+ }
+ if (manualBuild.getSelection()){
+ buffer.append(IExternalToolConstants.BUILD_TYPE_INCREMENTAL).append(',');
+ }
+ if (autoBuildButton.getSelection()) {
+ buffer.append(IExternalToolConstants.BUILD_TYPE_AUTO).append(',');
+ }
+
+ if (fDuringClean.getSelection()) {
+ buffer.append(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());
}
if (workingSetButton.getSelection()) {

Back to the top