core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/BuildContextSBSv2.java
branchC3_BUILDER_WORK
changeset 1749 0d2e2c9062b1
parent 1739 5f659a59d04a
child 1755 e65ffeef96f7
equal deleted inserted replaced
1747:853ab1210200 1749:0d2e2c9062b1
   200 	 */
   200 	 */
   201 	public List<File> getCachedSystemIncludePaths() {
   201 	public List<File> getCachedSystemIncludePaths() {
   202 		return getCachedData().getSystemIncludePaths();
   202 		return getCachedData().getSystemIncludePaths();
   203 	}
   203 	}
   204 	
   204 	
   205 	@Override
       
   206 	public int hashCode() {
       
   207 		final int prime = 31;
       
   208 		int result = 1;
       
   209 		result = prime * result
       
   210 				+ ((platform == null) ? 0 : platform.hashCode());
       
   211 		result = prime * result + ((getSDK() == null) ? 0 : getSDK().getEPOCROOT().hashCode());
       
   212 		result = prime * result + ((target == null) ? 0 : target.hashCode());
       
   213 		return result;
       
   214 	}
       
   215 
       
   216 
       
   217 	@Override
       
   218 	public boolean equals(Object obj) {
       
   219 		if (this == obj)
       
   220 			return true;
       
   221 		if (obj == null)
       
   222 			return false;
       
   223 		if (!(obj instanceof BuildContextSBSv2))
       
   224 			return false;
       
   225 		final BuildContextSBSv2 other = (BuildContextSBSv2) obj;
       
   226 		if (!configID.equalsIgnoreCase(other.configID)){
       
   227 			return false;
       
   228 		}
       
   229  		return true;
       
   230 	}
       
   231 
   205 
   232 	public static String getPlatformFromV1ConfigName(String displayString) {
   206 	public static String getPlatformFromV1ConfigName(String displayString) {
   233 		String[] tokens = displayString.split(" ");
   207 		String[] tokens = displayString.split(" ");
   234 		String sdkIdToken = tokens[2];
   208 		String sdkIdToken = tokens[2];
   235 		if (sdkIdToken.contains("_")){
   209 		if (sdkIdToken.contains("_")){
   237 			String[] aliasTokens = sdkIdToken.split("_");
   211 			String[] aliasTokens = sdkIdToken.split("_");
   238 			return aliasTokens[0];
   212 			return aliasTokens[0];
   239 		} else {
   213 		} else {
   240 			return sdkIdToken.substring(1, sdkIdToken.length()-1);
   214 			return sdkIdToken.substring(1, sdkIdToken.length()-1);
   241 		}
   215 		}
       
   216 	}
       
   217 
       
   218 	@Override
       
   219 	public int hashCode() {
       
   220 		final int prime = 31;
       
   221 		int result = 1;
       
   222 		result = prime * result
       
   223 				+ ((configID == null) ? 0 : configID.hashCode());
       
   224 		return result;
       
   225 	}
       
   226 
       
   227 	@Override
       
   228 	public boolean equals(Object obj) {
       
   229 		if (this == obj)
       
   230 			return true;
       
   231 		if (obj == null)
       
   232 			return false;
       
   233 		if (getClass() != obj.getClass())
       
   234 			return false;
       
   235 		BuildContextSBSv2 other = (BuildContextSBSv2) obj;
       
   236 		if (configID == null) {
       
   237 			if (other.configID != null)
       
   238 				return false;
       
   239 		} else if (!configID.equals(other.configID))
       
   240 			return false;
       
   241 		return true;
   242 	}
   242 	}
   243 
   243 
   244 	public static String getTargetFromV1ConfigName(String displayString) {
   244 	public static String getTargetFromV1ConfigName(String displayString) {
   245 		String[] tokens = displayString.split(" ");
   245 		String[] tokens = displayString.split(" ");
   246 		if (tokens[1].compareTo("Debug") == 0) {
   246 		if (tokens[1].compareTo("Debug") == 0) {