Author: dgolovin
Date: 2008-09-25 01:32:49 -0400 (Thu, 25 Sep 2008)
New Revision: 10471
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/AbstractSeamFacetTest.java
Log:
trying to fix exception during deleting resources. project.close() added before project
delete.
org.eclipse.core.runtime.CoreException: File not found:
/local/hudson/jobs/redhat-jbosss-tools-nightly/workspace/jbds-build/3.0.0.Beta1-N200809241802/tests/workspace/seam_ear-ejb/.settings/org.eclipse.jdt.core.prefs.
[java] at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55)
[java] at
org.eclipse.core.internal.filesystem.local.LocalFile.openInputStream(LocalFile.java:365)
[java] at
org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:622)
[java] at org.eclipse.core.internal.resources.File.getContents(File.java:298)
[java] at
org.eclipse.core.internal.resources.ProjectPreferences.load(ProjectPreferences.java:455)
[java] at
org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:307)
[java] at
org.eclipse.core.internal.preferences.EclipsePreferences.getChild(EclipsePreferences.java:412)
[java] at
org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences.java:541)
[java] at
org.eclipse.core.internal.preferences.EclipsePreferences.node(EclipsePreferences.java:662)
[java] at org.eclipse.core.resources.ProjectScope.getNode(ProjectScope.java:67)
[java] at
org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$EclipsePreferencesAdapter.getNode(JavaEditor.java:368)
[java] at
org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$EclipsePreferencesAdapter.contains(JavaEditor.java:394)
[java] at
org.eclipse.ui.texteditor.ChainedPreferenceStore.getVisibleStore(ChainedPreferenceStore.java:529)
[java] at
org.eclipse.ui.texteditor.ChainedPreferenceStore.handlePropertyChangeEvent(ChainedPreferenceStore.java:413)
[java] at
org.eclipse.ui.texteditor.ChainedPreferenceStore.access$0(ChainedPreferenceStore.java:408)
[java] at
org.eclipse.ui.texteditor.ChainedPreferenceStore$PropertyChangeListener.propertyChange(ChainedPreferenceStore.java:69)
[java] at
org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$EclipsePreferencesAdapter.firePropertyChangeEvent(JavaEditor.java:404)
[java] at
org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$EclipsePreferencesAdapter$PreferenceChangeListener.preferenceChange(JavaEditor.java:341)
[java] at
org.eclipse.core.internal.preferences.EclipsePreferences$2.run(EclipsePreferences.java:746)
[java] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
[java] at
org.eclipse.core.internal.preferences.EclipsePreferences.firePreferenceEvent(EclipsePreferences.java:749)
[java] at
org.eclipse.core.internal.preferences.EclipsePreferences.remove(EclipsePreferences.java:859)
[java] at
org.eclipse.core.internal.preferences.EclipsePreferences.removeNode(EclipsePreferences.java:872)
[java] at
org.eclipse.core.internal.preferences.EclipsePreferences.removeNode(EclipsePreferences.java:883)
[java] at
org.eclipse.core.internal.resources.ProjectPreferences.removeNode(ProjectPreferences.java:242)
[java] at
org.eclipse.core.internal.resources.ProjectPreferences.deleted(ProjectPreferences.java:134)
[java] at
org.eclipse.core.internal.resources.ProjectPreferences.deleted(ProjectPreferences.java:165)
[java] at
org.eclipse.core.internal.resources.Resource.deleteResource(Resource.java:772)
[java] at
org.eclipse.core.internal.localstore.DeleteVisitor.delete(DeleteVisitor.java:67)
[java] at
org.eclipse.core.internal.localstore.DeleteVisitor.visit(DeleteVisitor.java:150)
[java] at
org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:99)
[java] at
org.eclipse.core.internal.localstore.FileSystemResourceManager.delete(FileSystemResourceManager.java:228)
[java] at
org.eclipse.core.internal.resources.ResourceTree.internalDeleteFolder(ResourceTree.java:350)
[java] at
org.eclipse.core.internal.resources.ResourceTree.internalDeleteProject(ResourceTree.java:385)
[java] at
org.eclipse.core.internal.resources.ResourceTree.standardDeleteProject(ResourceTree.java:831)
[java] at
org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1720)
[java] at org.eclipse.core.internal.resources.Resource.delete(Resource.java:706)
[java] at org.eclipse.core.internal.resources.Project.delete(Project.java:317)
[java] at
org.jboss.tools.seam.core.test.project.facet.AbstractSeamFacetTest.tearDown(AbstractSeamFacetTest.java:114)
[java] at
org.jboss.tools.seam.ui.test.wizard.Seam12EARNewOperationTest.tearDown(Seam12EARNewOperationTest.java:93)
[java] at junit.framework.TestCase.runBare(TestCase.java:136)
[java] at junit.framework.TestResult$1.protect(TestResult.java:106)
[java] at junit.framework.TestResult.runProtected(TestResult.java:124)
[java] at junit.framework.TestResult.run(TestResult.java:109)
[java] at junit.framework.TestCase.run(TestCase.java:120)
[java] at junit.framework.TestSuite.runTest(TestSuite.java:230)
[java] at junit.framework.TestSuite.run(TestSuite.java:225)
[java] at junit.framework.TestSuite.runTest(TestSuite.java:230)
[java] at junit.framework.TestSuite.run(TestSuite.java:225)
[java] at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:354)
[java] at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:206)
[java] at org.eclipse.test.UITestApplication$3.run(UITestApplication.java:195)
[java] at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
[java] at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
[java] at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
[java] at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
[java] at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
[java] at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
[java] at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
[java] at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
[java] at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
[java] at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
[java] at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
[java] at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
[java] at
org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:138)
[java] at org.eclipse.test.UITestApplication.run(UITestApplication.java:60)
[java] at org.eclipse.test.UITestApplication.start(UITestApplication.java:210)
[java] at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
[java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
[java] at org.eclipse.core.launcher.Main.main(Main.java:30)
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/AbstractSeamFacetTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/AbstractSeamFacetTest.java 2008-09-25
01:35:11 UTC (rev 10470)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/AbstractSeamFacetTest.java 2008-09-25
05:32:49 UTC (rev 10471)
@@ -111,6 +111,7 @@
for (IResource r : this.resourcesToCleanup) {
try {
System.out.println("Deleting " + r);
+ r.getProject().close(null);
r.delete(true, null);
} catch(Exception e) {
System.out.println("Error deleting " + r);
Show replies by date