File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 3838import org .eclipse .debug .core .ILaunchConfigurationType ;
3939import org .eclipse .debug .core .ILaunchConfigurationWorkingCopy ;
4040import org .eclipse .debug .core .ILaunchManager ;
41- import org .eclipse .jdt .launching .IJavaLaunchConfigurationConstants ;
4241import org .eclipse .jdt .launching .JavaRuntime ;
4342
4443import org .apache .maven .plugin .Mojo ;
4746
4847import org .eclipse .m2e .core .MavenPlugin ;
4948import org .eclipse .m2e .core .embedder .IMaven ;
50- import org .eclipse .m2e .core .internal .IMavenConstants ;
5149import org .eclipse .m2e .core .project .IMavenProjectFacade ;
5250import org .eclipse .m2e .jdt .internal .launch .MavenRuntimeClasspathProvider ;
5351
@@ -232,12 +230,7 @@ public void setupLaunchConfiguration(ILaunchConfiguration configuration) {
232230 }
233231 IProject project = JavaRuntime .getJavaProject (configuration ).getProject ();
234232
235- // maven project if project has a maven classpath
236- boolean isMavenProject = configuration
237- .getAttribute (IJavaLaunchConfigurationConstants .ATTR_CLASSPATH_PROVIDER , "" )
238- .equals (MavenRuntimeClasspathProvider .MAVEN_CLASSPATH_PROVIDER );
239-
240- if (project != null && project .hasNature (IMavenConstants .NATURE_ID ) && isMavenProject ) {
233+ if (MavenPlugin .isMavenProject (project )) {
241234
242235 switch (configuration .getType ().getIdentifier ()) {
243236 case MavenRuntimeClasspathProvider .JDT_TESTNG_TEST :
You can’t perform that action at this time.
0 commit comments