public static PlatformRootstrap addRootstrap(PlatformRootstrap rootstrap ) {
rootstraps.add(rootstrap);
- SBIModel.addRootstrap(rootstrap, false);
-
+ //SBIModel.addRootstrap(rootstrap, false);
+ try {
+ SBIModel.reinitialize();
+ } catch (SBIException e) {
+ // nothing to do
+ }
RootstrapManager.notifyChangedRootstrap();
return rootstrap;
rootstrap.getArch(), rootstrap.getPath().toOSString(), rootstrap.getRepositoryURLs() );
try {
SBIModel.reinitialize();
+ reinitialize();
} catch (SBIException e) {
// nothing to do
}
try {
removeBaseFileSystem( rootstrap.getId() , rootstrap.getArch());
} catch (InterruptedException e) {
- // do nothing
+ // nothing to do
+ }
+ try {
+ SBIModel.reinitialize();
+ } catch (SBIException e) {
+ // nothing to do
}
RootstrapManager.notifyChangedRootstrap();
return true;
String rootId = rootstrap.getId();
IManagedBuildInfo info = ManagedBuildManager.getBuildInfo(project);
IConfiguration config = info.getDefaultConfiguration();
- String targetId = PlatformConfigurationManager.getBuildTargetName(config);
- if (targetId == null) {
- try {
- targetId = PlatformConfigurationManager.getDefaultBuildTargetName(config);
- } catch (SBIException e) {
- e.printStackTrace();
- }
- }
+ String targetId = PlatformConfigurationManager.getBuildTargetName(config);
SmartBuildInterface sbi = SmartBuildInterface.getInstance();
String toolId = sbi.getToolchainIDFromTargetID(targetId);
String newTargetId = SmartBuildInterface.makeTargetID(rootId, toolId);