Author: rob.stryker(a)jboss.com
Date: 2009-04-10 06:34:30 -0400 (Fri, 10 Apr 2009)
New Revision: 14659
Modified:
trunk/archives/tests/org.jboss.ide.eclipse.archives.test/src/org/jboss/ide/eclipse/archives/test/ArchivesTest.java
Log:
Unit Test Fixing
Modified:
trunk/archives/tests/org.jboss.ide.eclipse.archives.test/src/org/jboss/ide/eclipse/archives/test/ArchivesTest.java
===================================================================
---
trunk/archives/tests/org.jboss.ide.eclipse.archives.test/src/org/jboss/ide/eclipse/archives/test/ArchivesTest.java 2009-04-10
10:32:56 UTC (rev 14658)
+++
trunk/archives/tests/org.jboss.ide.eclipse.archives.test/src/org/jboss/ide/eclipse/archives/test/ArchivesTest.java 2009-04-10
10:34:30 UTC (rev 14659)
@@ -10,6 +10,11 @@
******************************************************************************/
package org.jboss.ide.eclipse.archives.test;
+import java.net.URL;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
@@ -37,6 +42,10 @@
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
+ URL url = FileLocator.toFileURL(getBundle().getEntry(""));
+ IPath p = new Path(url.getFile());
+ p.append("output").toFile().mkdirs();
+ p.append("tmp").toFile().mkdirs();
}
/*
@@ -44,6 +53,10 @@
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
+ URL url = FileLocator.toFileURL(getBundle().getEntry(""));
+ IPath p = new Path(url.getFile());
+ p.append("output").toFile().delete();
+ p.append("tmp").toFile().delete();
plugin = null;
super.stop(context);
}