Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2019-01-11 09:59:08 +0000
committerSarika Sinha2019-01-17 08:37:21 +0000
commit89530b29cb538a73f57f4b32cdf3f543258b9bc6 (patch)
treec6b661cf6160ac03dfa3d3f8d476dd7abd894380
parent359303656cdec57e144097ae04dc54a1525f62f5 (diff)
downloadeclipse.jdt.debug-89530b29cb538a73f57f4b32cdf3f543258b9bc6.tar.gz
eclipse.jdt.debug-89530b29cb538a73f57f4b32cdf3f543258b9bc6.tar.xz
eclipse.jdt.debug-89530b29cb538a73f57f4b32cdf3f543258b9bc6.zip
getClasspathAndModulepath to be used in LaunchDelegate Change-Id: I5bf612502849a3e5d09922c408757f856cf365d6
-rw-r--r--org.eclipse.jdt.launching/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractJavaLaunchConfigurationDelegate.java14
-rw-r--r--org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaLaunchDelegate.java12
-rw-r--r--org.eclipse.jdt.launching/pom.xml4
4 files changed, 18 insertions, 14 deletions
diff --git a/org.eclipse.jdt.launching/META-INF/MANIFEST.MF b/org.eclipse.jdt.launching/META-INF/MANIFEST.MF
index 6fcb96d25..7c2d3c3c6 100644
--- a/org.eclipse.jdt.launching/META-INF/MANIFEST.MF
+++ b/org.eclipse.jdt.launching/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.jdt.launching; singleton:=true
-Bundle-Version: 3.12.100.qualifier
+Bundle-Version: 3.13.0.qualifier
Bundle-Activator: org.eclipse.jdt.internal.launching.LaunchingPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractJavaLaunchConfigurationDelegate.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractJavaLaunchConfigurationDelegate.java
index 4408d5e85..0a1f3191f 100644
--- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractJavaLaunchConfigurationDelegate.java
+++ b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractJavaLaunchConfigurationDelegate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2018 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -410,19 +410,19 @@ public abstract class AbstractJavaLaunchConfigurationDelegate extends LaunchConf
}
return bootpathInfo;
}
+
/**
- * Returns the entries that should appear on the user portion of the
- * classpath as specified by the given launch configuration, as an array of
- * resolved strings. The returned array is empty if no classpath is
- * specified.
+ * Returns the entries that should appear on the user portion of the classpath as specified by the given launch configuration, as an array of
+ * resolved strings. The returned array is empty if no classpath is specified.
*
* @param configuration
* launch configuration
- * @return the classpath specified by the given launch configuration,
- * possibly an empty array
+ * @return the classpath specified by the given launch configuration, possibly an empty array
* @exception CoreException
* if unable to retrieve the attribute
+ * @deprecated use getClasspathAndModulepath
*/
+ @Deprecated
public String[] getClasspath(ILaunchConfiguration configuration)
throws CoreException {
IRuntimeClasspathEntry[] entries = JavaRuntime
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaLaunchDelegate.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaLaunchDelegate.java
index 7754afd94..471e60d0a 100644
--- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaLaunchDelegate.java
+++ b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaLaunchDelegate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2018 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -89,10 +89,12 @@ public class JavaLaunchDelegate extends AbstractJavaLaunchConfigurationDelegate
// VM-specific attributes
Map<String, Object> vmAttributesMap = getVMSpecificAttributesMap(configuration);
- // Bug 522333 :to be used for modulepath only for 4.7.*
String[][] paths = getClasspathAndModulepath(configuration);
+ if (paths == null || paths.length == 0) {
+ return null;
+ }
// Create VM config
- VMRunnerConfiguration runConfig = new VMRunnerConfiguration(mainTypeName, getClasspath(configuration));
+ VMRunnerConfiguration runConfig = new VMRunnerConfiguration(mainTypeName, paths[0]);
runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());
runConfig.setEnvironment(envp);
runConfig.setVMArguments(execArgs.getVMArgumentsArray());
@@ -120,7 +122,9 @@ public class JavaLaunchDelegate extends AbstractJavaLaunchConfigurationDelegate
runConfig.setBootClassPath(getBootpath(configuration));
} else if (supportsModule()) {
// module path
- runConfig.setModulepath(paths[1]);
+ if (paths.length > 1) {
+ runConfig.setModulepath(paths[1]);
+ }
if (!configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_DEFAULT_MODULE_CLI_OPTIONS, true)) {
runConfig.setOverrideDependencies(configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_MODULE_CLI_OPTIONS, "")); //$NON-NLS-1$
} else {
diff --git a/org.eclipse.jdt.launching/pom.xml b/org.eclipse.jdt.launching/pom.xml
index b98ef8773..fd48417aa 100644
--- a/org.eclipse.jdt.launching/pom.xml
+++ b/org.eclipse.jdt.launching/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2012, 2018 Eclipse Foundation and others.
+ Copyright (c) 2012, 2019 Eclipse Foundation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Distribution License v1.0
which accompanies this distribution, and is available at
@@ -18,7 +18,7 @@
</parent>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.launching</artifactId>
- <version>3.12.100-SNAPSHOT</version>
+ <version>3.13.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<build>

Back to the top