core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/sbsv2/SBSv2ConfigQueryData.java
equal
deleted
inserted
replaced
1 package com.nokia.carbide.cpp.internal.api.sdk.sbsv2; |
1 package com.nokia.carbide.cpp.internal.api.sdk.sbsv2; |
2 |
2 |
|
3 import java.io.File; |
3 import java.io.StringReader; |
4 import java.io.StringReader; |
4 import java.util.ArrayList; |
5 import java.util.ArrayList; |
5 import java.util.HashMap; |
6 import java.util.HashMap; |
6 import java.util.List; |
7 import java.util.List; |
7 import java.util.Map; |
8 import java.util.Map; |
179 String value = ""; |
180 String value = ""; |
180 Node valueNode = attribs.getNamedItem("value"); |
181 Node valueNode = attribs.getNamedItem("value"); |
181 if (valueNode != null) { |
182 if (valueNode != null) { |
182 value = valueNode.getNodeValue(); |
183 value = valueNode.getNodeValue(); |
183 } |
184 } |
|
185 if (name.equals("__PRODUCT_INCLUDE__")){ |
|
186 File f = new File(value.replaceAll("\"", "")); |
|
187 if (!f.exists()) |
|
188 continue; // Don't add a product include for non-existent HRH |
|
189 } |
184 buildMacros.put(name, value); |
190 buildMacros.put(name, value); |
185 } else if (buildChild.getNodeName().equals("preinclude")){ |
191 } else if (buildChild.getNodeName().equals("preinclude")){ |
186 buildPrefix = attribs.getNamedItem("file").getNodeValue(); |
192 buildPrefix = attribs.getNamedItem("file").getNodeValue(); |
187 } else if (buildChild.getNodeName().equals("targettype")){ |
193 } else if (buildChild.getNodeName().equals("targettype")){ |
188 String targettype = attribs.getNamedItem("name").getNodeValue(); |
194 String targettype = attribs.getNamedItem("name").getNodeValue(); |