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/01/10 18:28:10 UTC

cvs commit: jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/containers/ant StartServerHelper.java

jruaux      2003/01/10 09:28:10

  Modified:    Eclipse-Plugin/src/java/org/apache/cactus/eclipse/containers/ant
                        StartServerHelper.java
  Log:
  Added IProgressMonitor capability
  
  Revision  Changes    Path
  1.4       +17 -3     jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/containers/ant/StartServerHelper.java
  
  Index: StartServerHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/containers/ant/StartServerHelper.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StartServerHelper.java	3 Jan 2003 15:50:32 -0000	1.3
  +++ StartServerHelper.java	10 Jan 2003 17:28:10 -0000	1.4
  @@ -60,13 +60,13 @@
   import java.io.IOException;
   import java.io.InputStream;
   import java.io.PrintWriter;
  -
   import java.net.HttpURLConnection;
   import java.net.URL;
   
   import org.apache.tools.ant.BuildException;
   import org.eclipse.ant.core.AntRunner;
   import org.eclipse.core.runtime.CoreException;
  +import org.eclipse.core.runtime.IProgressMonitor;
   
   /**
    * A helper class for an Ant Task that does the following :
  @@ -86,9 +86,15 @@
   public class StartServerHelper implements Runnable
   {
       /**
  +     * The progress monitor that reflects progress made while starting the
  +     * container.
  +     */
  +    private IProgressMonitor pm;
  +
  +    /**
        * The URL that is continuously pinged to verify if the server is running.
        */
  -    private URL testURL;    
  +    private URL testURL;
   
       /**
        * The tasks that wraps around this helper class
  @@ -257,7 +263,7 @@
           // Call the AntRunner .
           try
           {
  -            runner.run();
  +            runner.run(pm);
           }
           catch (CoreException e)
           {
  @@ -274,5 +280,13 @@
       public void setTestURL(URL theTestURL)
       {
           this.testURL = theTestURL;
  +    }
  +
  +    /**
  +     * @param thePM the progress monitor to use
  +     */
  +    public void setProgressMonitor(IProgressMonitor thePM)
  +    {
  +        this.pm = thePM;
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>