86 IStatus status = null; |
86 IStatus status = null; |
87 if (builderCombo != null && builderCombo.getSelectionIndex() == 1) { |
87 if (builderCombo != null && builderCombo.getSelectionIndex() == 1) { |
88 |
88 |
89 IPath sbsBinPath = SBSv2Utils.getSBSBinDirectory(); |
89 IPath sbsBinPath = SBSv2Utils.getSBSBinDirectory(); |
90 |
90 |
91 // if SBSv2 is selected, make sure SBS_HOME is defined |
|
92 if (SBSv2Utils.getSBSBinDirectory() == null){ |
91 if (SBSv2Utils.getSBSBinDirectory() == null){ |
93 status = new Status(Status.ERROR, ProjectUIPlugin.PLUGIN_ID, "SBS_HOME environment variable is not defined. Carbide needs this variable to find the base SBS install."); |
92 status = new Status(Status.ERROR, ProjectUIPlugin.PLUGIN_ID, "The Symbian Build System (sbs) cannot be found on the PATH. Carbide needs a valid SBS installation on the PATH to use the SBSv2 builder."); |
94 } |
|
95 |
|
96 // check to see if SBS_HOME directory really exists |
|
97 else if (!sbsBinPath.toFile().exists()){ |
|
98 status = new Status(Status.ERROR, ProjectUIPlugin.PLUGIN_ID, "SBS_HOME environment variable path does not exist: " + sbsBinPath.toOSString()); |
|
99 } |
93 } |
100 // check the raptor version |
94 // check the raptor version |
101 else if (SDKCorePlugin.getSDKManager().getSBSv2Version(false).getMajor() == 0){ |
95 else if (SDKCorePlugin.getSDKManager().getSBSv2Version(false).getMajor() == 0){ |
102 // Try to scan again.... |
96 // Try to scan again.... |
103 if (SDKCorePlugin.getSDKManager().getSBSv2Version(true).getMajor() == 0){ |
97 if (SDKCorePlugin.getSDKManager().getSBSv2Version(true).getMajor() == 0){ |