when building SDK/Config tree and EPOCROOT is missing, update status with: (Building cache with bad EPOCROOT)
authortimkelly
Thu, 09 Sep 2010 09:47:25 -0500
changeset 1974 71a660e8393e
parent 1973 a7bfb499d772
child 1975 219ff03d22a7
when building SDK/Config tree and EPOCROOT is missing, update status with: (Building cache with bad EPOCROOT)
core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/sdk/ui/shared/BuildTargetTreeNode.java
--- a/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/sdk/ui/shared/BuildTargetTreeNode.java	Thu Sep 09 09:31:25 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/sdk/ui/shared/BuildTargetTreeNode.java	Thu Sep 09 09:47:25 2010 -0500
@@ -160,7 +160,11 @@
 					monitor.worked(1);
 					for (ISymbianSDK sdk : sdkListCopy) {
 						monitor.worked(1);
-						monitor.setTaskName(msgPrefix + sdk.getUniqueId());
+						String sdkErr = ""; // If we are scanning due to errors in the SDK
+						if (!(new File(sdk.getEPOCROOT()).exists())){
+							sdkErr = " (Building cache with bad EPOCROOT)";
+						}
+						monitor.setTaskName(msgPrefix + sdk.getUniqueId() + sdkErr);
 						BuildTargetTreeNode treeNode = new BuildTargetTreeNode(
 								sdk, sbsv2Project);
 						if (treeNode.getChildren() != null || sbsv2Project) {