[Esbox-commits] r1624 - branches/work_Ed/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests

eswartz at garage.maemo.org eswartz at garage.maemo.org
Thu May 21 04:44:12 EEST 2009


Author: eswartz
Date: 2009-05-21 04:44:11 +0300 (Thu, 21 May 2009)
New Revision: 1624

Modified:
   branches/work_Ed/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/TestScratchboxProjectInfo.java
Log:
Add check for non-started alternate SB1 installation

Modified: branches/work_Ed/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/TestScratchboxProjectInfo.java
===================================================================
--- branches/work_Ed/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/TestScratchboxProjectInfo.java	2009-05-20 23:53:28 UTC (rev 1623)
+++ branches/work_Ed/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/TestScratchboxProjectInfo.java	2009-05-21 01:44:11 UTC (rev 1624)
@@ -26,6 +26,7 @@
 import org.junit.Before;
 import org.junit.Test;
 import org.maemo.esbox.internal.scratchbox.sb1.core.SB1PreferenceConstants;
+import org.maemo.esbox.internal.scratchbox.sb1.core.Scratchbox1SDK;
 import org.maemo.esbox.internal.scratchbox.tests.Activator;
 import org.maemo.esbox.scratchbox.core.sdk.ScratchboxSDKFacade;
 import org.maemo.esbox.scratchbox.sb1.sdk.IScratchbox1SDK;
@@ -34,6 +35,7 @@
 import org.maemo.mica.common.core.sdk.ISDK;
 import org.maemo.mica.common.core.sdk.ISDKTarget;
 import org.maemo.mica.common.core.sdk.SDKFactory;
+import org.maemo.mica.common.core.tests.StdoutProgressReporter;
 import org.maemo.mica.common.core.tests.TestUtils;
 import org.maemo.mica.common.project.core.BuildConfigurationData;
 import org.maemo.mica.common.project.core.IBuildConfigurationData;
@@ -122,6 +124,8 @@
 		// add configurations for every target
 		Set<String> uniqueTargets = new HashSet<String>();
 		for (IScratchbox1SDK sdk : sdks) {
+			// FIXME: SB1 should start itself up
+			Scratchbox1SDK.startup(sdk.getMachine(), sdk.getInstallRoot(), null, new StdoutProgressReporter());
 			for (String target : sdk.getTargets()) {
 				if (!uniqueTargets.contains(target)) {
 					IBuildConfigurationData data = new BuildConfigurationData(



More information about the Esbox-commits mailing list