You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by jr...@apache.org on 2003/05/12 18:31:02 UTC
cvs commit: jakarta-cactus/integration/eclipse/org.apache.cactus.eclipse.runner/src/java/org/apache/cactus/eclipse/runner/containers/ant AntContainerProvider.java AntContainerManager.java
jruaux 2003/05/12 09:31:02
Modified: integration/eclipse/org.apache.cactus.eclipse.runner/src/java/org/apache/cactus/eclipse/runner/containers/ant
AntContainerProvider.java AntContainerManager.java
Log:
Removed progress dialog for teardown, and corrected problem with cleaning temporary folders
Revision Changes Path
1.3 +3 -3 jakarta-cactus/integration/eclipse/org.apache.cactus.eclipse.runner/src/java/org/apache/cactus/eclipse/runner/containers/ant/AntContainerProvider.java
Index: AntContainerProvider.java
===================================================================
RCS file: /home/cvs/jakarta-cactus/integration/eclipse/org.apache.cactus.eclipse.runner/src/java/org/apache/cactus/eclipse/runner/containers/ant/AntContainerProvider.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AntContainerProvider.java 23 Apr 2003 10:01:27 -0000 1.2
+++ AntContainerProvider.java 12 May 2003 16:31:01 -0000 1.3
@@ -177,9 +177,9 @@
try
{
thePM.worked(30);
- while (!this.startLaunch.isTerminated())
+ while (this.startLaunch == null
+ || !this.startLaunch.isTerminated())
{
-
Thread.sleep(300);
thePM.worked(7);
}
1.11 +12 -48 jakarta-cactus/integration/eclipse/org.apache.cactus.eclipse.runner/src/java/org/apache/cactus/eclipse/runner/containers/ant/AntContainerManager.java
Index: AntContainerManager.java
===================================================================
RCS file: /home/cvs/jakarta-cactus/integration/eclipse/org.apache.cactus.eclipse.runner/src/java/org/apache/cactus/eclipse/runner/containers/ant/AntContainerManager.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- AntContainerManager.java 12 May 2003 11:57:29 -0000 1.10
+++ AntContainerManager.java 12 May 2003 16:31:01 -0000 1.11
@@ -81,7 +81,6 @@
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jface.dialogs.ProgressMonitorDialog;
import org.eclipse.jface.operation.IRunnableWithProgress;
-import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.externaltools.internal.model.IExternalToolConstants;
@@ -468,54 +467,19 @@
*/
public void tearDown()
{
- final IRunnableWithProgress runnable = new IRunnableWithProgress()
+ CactusPlugin.log("Tearing down cactus tests");
+ try
{
- public void run(IProgressMonitor thePM) throws InterruptedException
- {
- CactusPlugin.log("Tearing down cactus tests");
- try
- {
- teardownCactusTests(thePM, provider);
- }
- catch (CoreException e)
- {
- throw new InterruptedException(e.getMessage());
- }
- }
- };
- Display.getDefault().asyncExec(new Runnable()
+ teardownCactusTests(new NullProgressMonitor(), provider);
+ }
+ catch (CoreException e)
{
- public void run()
- {
- try
- {
- ProgressMonitorDialog dialog =
- new ProgressMonitorDialog(getShell());
- dialog.run(true, true, runnable);
- }
- catch (InvocationTargetException e)
- {
- CactusPlugin.displayErrorMessage(
- CactusMessages.getString(
- "CactusLaunch.message.teardown.error"),
- e.getTargetException().getMessage(),
- null);
- cancelPreparation(provider);
- return;
- }
- catch (InterruptedException e)
- {
- CactusPlugin.displayErrorMessage(
- CactusMessages.getString(
- "CactusLaunch.message.teardown.error"),
- e.getMessage(),
- null);
- cancelPreparation(provider);
- return;
- }
- }
-
- });
+ CactusPlugin.displayErrorMessage(
+ CactusMessages.getString("CactusLaunch.message.teardown.error"),
+ e.getMessage(),
+ null);
+ cancelPreparation(provider);
+ }
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org