Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2011-02-22 10:19:42 -0500
committerMichael Rennie2011-02-22 10:19:42 -0500
commit2d703c9ac435ac4c6e437957d5b69ed585811b28 (patch)
tree9998d8c4b7dd33ebf684101a2f37c384b52be723 /org.eclipse.core.externaltools
parent1d398349631cf55569fde0651464e16c4e8fb129 (diff)
downloadeclipse.platform.debug-2d703c9ac435ac4c6e437957d5b69ed585811b28.tar.gz
eclipse.platform.debug-2d703c9ac435ac4c6e437957d5b69ed585811b28.tar.xz
eclipse.platform.debug-2d703c9ac435ac4c6e437957d5b69ed585811b28.zip
Bug 114563 - [launching] [builders] Ant Builder doesn't build with Target set to <default>
Diffstat (limited to 'org.eclipse.core.externaltools')
-rw-r--r--org.eclipse.core.externaltools/src/org/eclipse/core/externaltools/internal/model/BuilderCoreUtils.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.core.externaltools/src/org/eclipse/core/externaltools/internal/model/BuilderCoreUtils.java b/org.eclipse.core.externaltools/src/org/eclipse/core/externaltools/internal/model/BuilderCoreUtils.java
index 23cf6ea65..d8e7d750b 100644
--- a/org.eclipse.core.externaltools/src/org/eclipse/core/externaltools/internal/model/BuilderCoreUtils.java
+++ b/org.eclipse.core.externaltools/src/org/eclipse/core/externaltools/internal/model/BuilderCoreUtils.java
@@ -124,7 +124,6 @@ public class BuilderCoreUtils {
newCommand.setBuilding(IncrementalProjectBuilder.INCREMENTAL_BUILD, false);
newCommand.setBuilding(IncrementalProjectBuilder.AUTO_BUILD, false);
newCommand.setBuilding(IncrementalProjectBuilder.CLEAN_BUILD, false);
- Map args = newCommand.getArguments();
String buildKinds = config.getAttribute(IExternalToolConstants.ATTR_RUN_BUILD_KINDS, (String) null);
int[] triggers = buildTypesToArray(buildKinds);
boolean isfull = false, isinc = false;
@@ -147,6 +146,10 @@ public class BuilderCoreUtils {
}
}
if(!isfull && isinc) {
+ Map args = newCommand.getArguments();
+ if(args == null) {
+ args = new HashMap();
+ }
newCommand.setBuilding(IncrementalProjectBuilder.FULL_BUILD, true);
args.put(INC_CLEAN, Boolean.TRUE.toString());
newCommand.setArguments(args);

Back to the top