Author: jjankovi
Date: 2012-03-28 08:21:10 -0400 (Wed, 28 Mar 2012)
New Revision: 39876
Removed:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/ProjectImportHelper.java
Log:
ProjectImportHelper moved to CDI bot test
Deleted:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/ProjectImportHelper.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/ProjectImportHelper.java 2012-03-28
12:20:31 UTC (rev 39875)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/ProjectImportHelper.java 2012-03-28
12:21:10 UTC (rev 39876)
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010-2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at
http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-
-package org.jboss.tools.cdi.seam3.bot.test.util;
-
-import java.io.File;
-import java.io.IOException;
-
-import org.jboss.tools.cdi.bot.test.CDIBase;
-import org.jboss.tools.cdi.seam3.bot.test.Activator;
-import org.jboss.tools.ui.bot.ext.helper.FileHelper;
-import org.jboss.tools.ui.bot.ext.helper.ImportHelper;
-import org.jboss.tools.ui.bot.ext.helper.ResourceHelper;
-
-public class ProjectImportHelper extends CDIBase {
-
- public void importTestProject(String projectLocation, String dir) {
- String rpath = ResourceHelper.getResourceAbsolutePath(Activator.PLUGIN_ID,
projectLocation);
- String wpath = ResourceHelper.getWorkspaceAbsolutePath() + "/" + dir;
- File rfile = new File(rpath);
- File wfile = new File(wpath);
-
- wfile.mkdirs();
- try {
- FileHelper.copyFilesBinaryRecursively(rfile, wfile, null);
- } catch (IOException e) {
- fail("Unable to copy test project");
- }
- ImportHelper.importAllProjects(wpath);
- util.waitForNonIgnoredJobs();
- }
-
- public void importTestProject(String projectLocation) {
- importTestProject(projectLocation, projectLocation);
- }
-
-}