jruaux      2003/01/15 08:28:03

  Modified:    Eclipse-Plugin/src/java/org/apache/cactus/eclipse/containers/ant
                        GenericAntProvider.java
  Log:
  Exception handling for progress monitor
  
  Revision  Changes    Path
  1.8       +15 -1     
jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/containers/ant/GenericAntProvider.java
  
  Index: GenericAntProvider.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/containers/ant/GenericAntProvider.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- GenericAntProvider.java   15 Jan 2003 09:07:07 -0000      1.7
  +++ GenericAntProvider.java   15 Jan 2003 16:28:03 -0000      1.8
  @@ -65,6 +65,7 @@
   import org.apache.cactus.eclipse.containers.Credential;
   import org.apache.cactus.eclipse.containers.IContainerProvider;
   import org.apache.cactus.eclipse.ui.CactusPlugin;
  +import org.apache.tools.ant.BuildException;
   import org.eclipse.ant.core.AntRunner;
   import org.eclipse.core.runtime.CoreException;
   import org.eclipse.core.runtime.IProgressMonitor;
  @@ -174,7 +175,20 @@
           }
           startHelper.setTestURL(testURL);
           startHelper.setProgressMonitor(new SubProgressMonitor(thePM, 4));
  -        startHelper.execute();
  +        try
  +        {
  +            startHelper.execute();
  +        }
  +        catch (BuildException e)
  +        {
  +            throw new CoreException(
  +                new Status(
  +                    IStatus.ERROR,
  +                    CactusPlugin.getPluginId(),
  +                    IStatus.OK,
  +                    e.getMessage(),
  +                    e));
  +        }
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to