Merge commit
authorEd Swartz <ed.swartz@nokia.com>
Wed, 15 Sep 2010 14:53:50 -0500
changeset 2016 e77c83f0c75a
parent 2015 d1f4910518d1 (current diff)
parent 2011 445b096b330f (diff)
child 2017 3155bf88e8d1
Merge commit
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/sbsv2/SBSv2ConfigQueryData.java	Wed Sep 15 14:53:33 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/sbsv2/SBSv2ConfigQueryData.java	Wed Sep 15 14:53:50 2010 -0500
@@ -1,6 +1,5 @@
 package com.nokia.carbide.cpp.internal.api.sdk.sbsv2;
 
-import java.io.File;
 import java.io.StringReader;
 import java.util.ArrayList;
 import java.util.HashMap;
@@ -10,6 +9,8 @@
 import javax.xml.parsers.DocumentBuilder;
 import javax.xml.parsers.DocumentBuilderFactory;
 
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
 import org.w3c.dom.Element;
 import org.w3c.dom.NamedNodeMap;
 import org.w3c.dom.Node;
@@ -19,6 +20,7 @@
 
 import com.nokia.carbide.cpp.internal.api.sdk.ISBSv2ConfigQueryData;
 import com.nokia.carbide.cpp.sdk.core.SDKCorePlugin;
+import com.nokia.cpp.internal.api.utils.core.HostOS;
 import com.nokia.cpp.internal.api.utils.core.Logging;
 
 public class SBSv2ConfigQueryData implements ISBSv2ConfigQueryData {
@@ -183,9 +185,15 @@
 											value = valueNode.getNodeValue();
 										}
 										if (name.equals("__PRODUCT_INCLUDE__")){
-											File f = new File(value.replaceAll("\"", ""));
-											if (!f.exists())
+											IPath f = new Path(value.replaceAll("\"", ""));
+											if (!f.toFile().exists())
 												continue; // Don't add a product include for non-existent HRH
+											
+											// Raptor provides HRH as a full quoted path for windows
+											if (HostOS.IS_WIN32){
+												value = value.substring(3, value.length()-1);
+												value = "\\\"" + value + "\\\"";
+											}
 										}
 										buildMacros.put(name, value);
 									} else if (buildChild.getNodeName().equals("preinclude")){