10823 - if installing and launching from E:, install into E: also
authordadubrow
Wed, 03 Mar 2010 08:44:40 -0600
changeset 1069 16060a6479b9
parent 1067 856622c7b203
child 1071 6776eee973c9
10823 - if installing and launching from E:, install into E: also
debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/LaunchWizardData.java
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/LaunchWizardData.java	Wed Mar 03 08:27:25 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/LaunchWizardData.java	Wed Mar 03 08:44:40 2010 -0600
@@ -340,8 +340,13 @@
 		addBuildOptions(config);
 		// always set the current connection id
 		config.setAttribute(RemoteConnectionsTRKHelper.CONNECTION_ATTRIBUTE, Registry.CURRENT_CONNECTION_ID);
-		if (installPackage)
+		if (installPackage) {
 			config.setAttribute(PreferenceConstants.J_PN_SisFileHostPath, sisPath);
+			// special case handling for running out of E: drive - install into E: drive
+			if (exeSelection.equals(EExeSelection.USE_REMOTE_EXECUTABLE) && 
+					exeSelectionPath.getDevice().equalsIgnoreCase("E:")) //$NON-NLS-1$
+				config.setAttribute(PreferenceConstants.J_PN_InstallToDrive, 4); // index 4 == E: drive
+		}
 	}
 
 	private IPath getMmpPath(IPath exePath) {