Fixed bad cast exceptions caused by casting from CarbideBuildConfiguration to ISBSv1BuildContext.
--- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideSBSv1Builder.java Tue Oct 19 07:21:52 2010 -0500
+++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideSBSv1Builder.java Tue Oct 19 14:41:12 2010 -0500
@@ -358,7 +358,7 @@
EpocEngineHelper.hasFeatureVariantKeyword(buildConfig.getCarbideProject(), componentPath)){
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
SubMonitor progress = SubMonitor.convert(monitor, 2);
@@ -422,7 +422,7 @@
EpocEngineHelper.hasFeatureVariantKeyword(buildConfig.getCarbideProject(), componentPath)){
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
// run abld makefile platform for each component to be built if needed
@@ -1180,7 +1180,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
List<String> argsList = new ArrayList<String>();
@@ -1212,7 +1212,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
List<String> argsList = new ArrayList<String>();
@@ -1307,7 +1307,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
argsList.clear();
@@ -1339,7 +1339,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
argsList.clear();
@@ -1372,7 +1372,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
argsList.clear();
@@ -1403,7 +1403,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
argsList.clear();
@@ -1457,7 +1457,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
argsList.clear();
@@ -1490,7 +1490,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
argsList.clear();
@@ -1524,7 +1524,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
argsList.clear();
@@ -1557,7 +1557,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
argsList.clear();
@@ -1730,7 +1730,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
List<String> argsList = new ArrayList<String>();
@@ -1907,7 +1907,7 @@
buildPlatform = buildConfig.getPlatformString().toLowerCase();
} else if (buildConfig.getBuildContext() instanceof ISBSv1BuildContext) {
- buildPlatform = ((ISBSv1BuildContext)buildConfig).getBasePlatformForVariation().toLowerCase();
+ buildPlatform = ((ISBSv1BuildContext)buildConfig.getBuildContext()).getBasePlatformForVariation().toLowerCase();
}
List<String> argsList = new ArrayList<String>();