[jbosstools-commits] JBoss Tools SVN: r43251 - branches/jbosstools-3.3.x/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Mon Aug 27 08:00:59 EDT 2012


Author: sbunciak
Date: 2012-08-27 08:00:59 -0400 (Mon, 27 Aug 2012)
New Revision: 43251

Modified:
   branches/jbosstools-3.3.x/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/CreateApp.java
Log:
OpenShift SWTBot tests: git directory fix

Modified: branches/jbosstools-3.3.x/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/CreateApp.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/CreateApp.java	2012-08-27 12:00:39 UTC (rev 43250)
+++ branches/jbosstools-3.3.x/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/CreateApp.java	2012-08-27 12:00:59 UTC (rev 43251)
@@ -21,7 +21,9 @@
 	public void cleanUpProject() {
 		File gitDir = new File(System.getProperty("user.home") + "/git");
 
-		if (gitDir.exists() && gitDir.isDirectory()
+		boolean exists = gitDir.exists() ?  true : gitDir.mkdir(); 
+		
+		if (exists && gitDir.isDirectory()
 				&& gitDir.listFiles().length > 0) {
 			for (File file : gitDir.listFiles()) {
 				if (file.getName().contains(



More information about the jbosstools-commits mailing list