merged RCL_2_0
authorwpaul
Wed, 08 Apr 2009 10:42:04 -0500
branchRCL_2_0
changeset 78 b7d854010c8d
parent 77 e2b416032b5b (diff)
parent 76 27e53e1abc19 (current diff)
child 79 5d0d918835c8
merged
--- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/EnvironmentVarsInfo2.java	Wed Apr 08 10:32:45 2009 -0500
+++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/EnvironmentVarsInfo2.java	Wed Apr 08 10:42:04 2009 -0500
@@ -206,7 +206,10 @@
 					else {
 						String epocRootStr = epocRoot.toOSString();
 						if (epocRootStr.indexOf(":") == 1) {
-							epocRootStr = epocRootStr.substring(2);
+							// only strip the drive for SBSv1
+							if (!CarbideBuilderPlugin.getBuildManager().isCarbideSBSv2Project(projectTracker.getProject())) {
+								epocRootStr = epocRootStr.substring(2);
+							}
 						}
 						returnEnvArray[i] = EPOCROOT + EQUALS + epocRootStr;
 					}	
@@ -286,7 +289,10 @@
 					else {
 						String epocRootStr = epocRoot.toOSString();
 						if (epocRootStr.indexOf(":") == 1) {
-							epocRootStr = epocRootStr.substring(2);
+							// only strip the drive for SBSv1
+							if (!CarbideBuilderPlugin.getBuildManager().isCarbideSBSv2Project(projectTracker.getProject())) {
+								epocRootStr = epocRootStr.substring(2);
+							}
 						}
 						returnEnvArray[i] = EPOCROOT + EQUALS + epocRootStr;
 					}