Index: src/org/jboss/tools/test/util/ResourcesUtils.java =================================================================== --- src/org/jboss/tools/test/util/ResourcesUtils.java (revision 22087) +++ src/org/jboss/tools/test/util/ResourcesUtils.java (working copy) @@ -195,7 +195,7 @@ * @param path the path * @param projectName the project name */ - static public IProject importProjectIntoWorkspace(String path, String projectName) { + static public IProject importProjectIntoWorkspace(String path, String projectName) throws IOException { IProject project = null; @@ -219,10 +219,16 @@ unimportedFiles.add(".svn"); //$NON-NLS-1$ importProvider.setUnimportedFiles(unimportedFiles); + + File file = new File(path); + + if(!file.isDirectory()) { + throw new IOException("Cannot import test project from " + file); + } // create import operation ImportOperation importOp = new ImportOperation(project - .getFullPath(), new File(path), importProvider, overwrite); + .getFullPath(), file, importProvider, overwrite); // import files just to project folder ( without old structure ) importOp.setCreateContainerStructure(false);