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 (-2 / +24 lines)
Lines 300-307 Link Here
300
			if(value.toString().indexOf("probe") != -1)
300
			if(value.toString().indexOf("probe") != -1)
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("executab1leArgs", "");
304
				TI_JVM_FLAG = VMArgs + " " + TI_JVM_FLAG ;
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
					StringBuffer bootClassPath = new StringBuffer();
309
					bootClassPath.append("-Xbootclasspath/p:"); //$NON-NLS-1$
310
					/* If this is a Windows operating system, add quotes to the beginning and end of
311
					 * the value passed to bootclasspath.  This is done in case there are spaces in the
312
					 * path(s) specified. */
313
					boolean isWindows = false;
314
					if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1) //$NON-NLS-1$ //$NON-NLS-2$
315
					{
316
						bootClassPath.append("\""); //$NON-NLS-1$
317
						isWindows = true;
318
					}
319
					bootClassPath.append(classpath);
320
					if (isWindows)
321
					{
322
						bootClassPath.append("\""); //$NON-NLS-1$
323
					}
324
					VMArgs += " " + bootClassPath.toString(); //$NON-NLS-1$
325
				}
326
				TI_JVM_FLAG = VMArgs + " " + TI_JVM_FLAG ; //$NON-NLS-1$
305
				isCGProf = false;
327
				isCGProf = false;
306
				break;
328
				break;
307
			}
329
			}

Return to bug 255813