Example #1
0
 public Builder(LauncherOptions options, AppLocations appLocations, IBuilderEvent builderEvent)
     : base(options, appLocations)
 {
     Counters      = new List <string>();
     traceListener = new BuilderEventListener(this);
     BuilderEvent  = builderEvent;
 }
Example #2
0
		public static string Verify(LauncherOptions options)
		{
			if (options.Emulator == EmulatorType.Qemu && options.ImageFormat == ImageFormat.VDI)
			{
				return "QEMU does not support the VDI image format";
			}

			if (options.Emulator == EmulatorType.Bochs && options.ImageFormat == ImageFormat.VDI)
			{
				return "Bochs does not support the VDI image format";
			}

			if (options.Emulator == EmulatorType.Bochs && options.ImageFormat == ImageFormat.VMDK)
			{
				return "Bochs does not support the VMDK image format";
			}

			if (options.Emulator == EmulatorType.VMware && options.ImageFormat == ImageFormat.IMG)
			{
				return "VMware does not support the IMG image format";
			}

			if (options.Emulator == EmulatorType.VMware && options.ImageFormat == ImageFormat.VDI)
			{
				return "VMware does not support the VHD image format";
			}

			if (options.BootLoader == BootLoader.Grub_0_97 && options.ImageFormat != ImageFormat.ISO)
			{
				return "Grub boot loader does not support virtual disk formats";
			}

			if (options.BootLoader == BootLoader.Grub_2_00 && options.ImageFormat != ImageFormat.ISO)
			{
				return "Grub boot loader does not support virtual disk formats";
			}

			if (options.BootLoader == BootLoader.Syslinux_6_03 && options.ImageFormat != ImageFormat.ISO)
			{
				return "Syslinux boot loader v6.03 does not support virtual disk format";
			}

			if (options.PlatformType == PlatformType.NotSpecified)
			{
				return "Platform not supported";
			}

			return null;
		}
Example #3
0
 public Starter(LauncherOptions launcherOptions, AppLocations appLocations, IStarterEvent launcherEvent)
     : base(launcherOptions, appLocations)
 {
     LauncherEvent = launcherEvent;
 }
Example #4
0
 public Starter(LauncherOptions options, AppLocations appLocations, IStarterEvent launcherEvent, MosaLinker linker)
     : base(options, appLocations)
 {
     LauncherEvent = launcherEvent;
     Linker        = linker;
 }
Example #5
0
 public BaseLauncher(LauncherOptions options, AppLocations appLocations)
 {
     LauncherOptions = options;
     AppLocations    = appLocations;
     Log             = new List <string>();
 }