Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 255813 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/tptp/platform/jvmti/client/internal/launcher/TIDelegateHelper.java (+19 lines)
Lines 301-306 Link Here
301
			{
301
			{
302
				TI_JVM_FLAG = TI_PROBE_JVM_FLAG;
302
				TI_JVM_FLAG = TI_PROBE_JVM_FLAG;
303
				String VMArgs = launchConfiguration.getAttribute("executableArgs", "");
303
				String VMArgs = launchConfiguration.getAttribute("executableArgs", "");
304
				//255813 need to deal with the Remote Java Application use case
305
				//where the specified classpath needs to be added to the bootclasspath
306
				String classpath = launchConfiguration.getAttribute(IProfileLaunchConfigurationConstants.ATTR_CLASSPATH, (String)null);
307
				if(classpath != null) {
308
					String bootClassPath = "-Xbootclasspath/p:";
309
					/* If this is a Windows operating system, add quotes to the beginning and end of
310
					 * the value passed to bootclasspath.  This is done in case there are spaces in the
311
					 * path(s) specified. */
312
					if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1)
313
					{
314
						bootClassPath = bootClassPath + "\"";
315
					}
316
					bootClassPath += classpath;
317
					if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1)
318
					{
319
						bootClassPath = bootClassPath + "\"";
320
					}
321
					VMArgs += " " + bootClassPath;
322
				}
304
				TI_JVM_FLAG = VMArgs + " " + TI_JVM_FLAG ;
323
				TI_JVM_FLAG = VMArgs + " " + TI_JVM_FLAG ;
305
				isCGProf = false;
324
				isCGProf = false;
306
				break;
325
				break;

Return to bug 255813