if (vm.getPropertyValue().baseImage == null) {
if (vm.getImageType().equals(FSImageType.standard)) {
for (BaseImage b : imageList) {
- if (vm.getBaseImageName().equals(b.getName())) {
+ if (vm.getBaseImagePath().equals(b.getPath())) {
vm.getPropertyValue().baseImage = b;
break;
}
}
} else {
- // TODO: create custom base image
for (Platform p : platformList) {
if (vm.getImagePlatform().equals(p.getName())) {
try {
}
private static void checkingBaseImageBinaryVersion() {
- // TODO
EmulatorVMList vms = EmulatorVMList.getInstance();
vms.refreshProperties();
- totalProfile.clearVMsList();
-
String binaryVersion = "";
String path = "";
BaseImage base = null;
+ Profile profile = null;
for (VMProperty prop : (VMProperty[])vms.getProperties()) {
- totalProfile.addEmulator(prop);
- prop.initVMWorker();
-
if (prop.getImageType() == FSImageType.standard) {
+ profile = ProfileList.getProfile(prop.getImageProfile());
+ if (profile == null) {
+ continue;
+ }
+
+ for (BaseImage b : profile.getImageList()) {
+ if (prop.getBaseImagePath().equals(b.getPath())) {
+ prop.getPropertyValue().baseImage = b;
+ break;
+ }
+ }
+ if (prop.getPropertyValue().baseImage == null) {
+ continue;
+ }
+
+ prop.initVMWorker();
+
binaryVersion = prop.getConfiguration().getBaseInformation().getDiskImage().getBaseDiskImage().getVersion();
path = prop.getConfiguration().getBaseInformation().getDiskImage().getBaseDiskImage().getValue();
base = prop.getPropertyValue().baseImage;