Skip to content

Commit

Permalink
MNGECLIPSE-2237 - make m2e run maven goals work with 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal authored and Pascal committed Jun 8, 2010
1 parent c7f7e18 commit 525a99c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.debug.ui.DebugUITools;
import org.eclipse.debug.ui.IDebugModelPresentation;
import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.debug.ui.ILaunchShortcut;
import org.eclipse.debug.ui.RefreshTab;
import org.eclipse.jdt.core.IClasspathEntry;
Expand Down Expand Up @@ -189,10 +190,10 @@ private ILaunchConfiguration createLaunchConfiguration(IContainer basedir, Strin
.getLaunchConfigurationType(MavenLaunchConstants.LAUNCH_CONFIGURATION_TYPE_ID);

ILaunchConfigurationWorkingCopy workingCopy = launchConfigurationType.newInstance(null, //
"Executing " + goal + " in " + basedir.getLocation());
"Executing " + goal + " in " + basedir.getLocation().toString().replace('/', '-'));
workingCopy.setAttribute(MavenLaunchConstants.ATTR_POM_DIR, basedir.getLocation().toOSString());
workingCopy.setAttribute(MavenLaunchConstants.ATTR_GOALS, goal);

workingCopy.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);
workingCopy.setAttribute(RefreshTab.ATTR_REFRESH_SCOPE, "${project}");
workingCopy.setAttribute(RefreshTab.ATTR_REFRESH_RECURSIVE, true);

Expand Down

0 comments on commit 525a99c

Please sign in to comment.