Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2013-03-14 00:16:20 -0400
committerIgor Fedorenko2013-03-14 00:16:20 -0400
commit5be4ad63b3188cb46186391d0737e61375fcf918 (patch)
treee799aec7b2fed9f46c4a1fe48fdaa252de6f0aca /org.eclipse.m2e.launching
parent536479b9efd6d0f69210f22b66a06d097a06665f (diff)
downloadm2e-core-5be4ad63b3188cb46186391d0737e61375fcf918.tar.gz
m2e-core-5be4ad63b3188cb46186391d0737e61375fcf918.tar.xz
m2e-core-5be4ad63b3188cb46186391d0737e61375fcf918.zip
380484 --threads is one less than it should be
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.launching')
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java
index 6d858fe9..b10205b5 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java
@@ -607,7 +607,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
this.skipTestsButton.setSelection(getAttribute(configuration, ATTR_SKIP_TESTS, false));
this.nonRecursiveButton.setSelection(getAttribute(configuration, ATTR_NON_RECURSIVE, false));
this.enableWorkspaceResolution.setSelection(getAttribute(configuration, ATTR_WORKSPACE_RESOLUTION, false));
- this.threadsCombo.select(getAttribute(configuration, ATTR_THREADS, 0));
+ this.threadsCombo.select(getAttribute(configuration, ATTR_THREADS, 1) - 1);
String location = getAttribute(configuration, ATTR_RUNTIME, ""); //$NON-NLS-1$
MavenRuntime runtime = runtimeManager.getRuntime(location);
@@ -708,7 +708,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
MavenRuntime runtime = (MavenRuntime) selection.getFirstElement();
configuration.setAttribute(ATTR_RUNTIME, runtime.getLocation());
- configuration.setAttribute(ATTR_THREADS, threadsCombo.getSelectionIndex());
+ configuration.setAttribute(ATTR_THREADS, threadsCombo.getSelectionIndex() + 1);
// store as String in "param=value" format
List<String> properties = new ArrayList<String>();

Back to the top