[jbosstools-commits] JBoss Tools SVN: r23084 - trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Jun 29 10:41:27 EDT 2010


Author: vpakan at redhat.com
Date: 2010-06-29 10:41:26 -0400 (Tue, 29 Jun 2010)
New Revision: 23084

Modified:
   trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java
Log:
When calling method getPathToResources(...) support to return also directory location not only file location.

Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java	2010-06-29 14:38:34 UTC (rev 23083)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java	2010-06-29 14:41:26 UTC (rev 23084)
@@ -247,7 +247,7 @@
 		   +
 		   testPage;  //$NON-NLS-1$//$NON-NLS-2$
 		File file = new File(filePath);
-		if (!file.isFile()) {
+		if (!file.exists()) {
 			filePath = FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile()+testPage; //$NON-NLS-1$
 		}
 		return filePath;



More information about the jbosstools-commits mailing list