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(
Show replies by date