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:00 UTC

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

jruaux      2003/01/10 09:28:00

  Modified:    Eclipse-Plugin/src/java/org/apache/cactus/eclipse/containers/ant
                        GenericAntProvider.java
  Log:
  Added IProgressMonitor capability
  
  Revision  Changes    Path
  1.4       +14 -6     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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- GenericAntProvider.java	3 Jan 2003 15:50:32 -0000	1.3
  +++ GenericAntProvider.java	10 Jan 2003 17:28:00 -0000	1.4
  @@ -67,6 +67,7 @@
   import org.apache.cactus.eclipse.ui.CactusPlugin;
   import org.eclipse.ant.core.AntRunner;
   import org.eclipse.core.runtime.CoreException;
  +import org.eclipse.core.runtime.IProgressMonitor;
   import org.eclipse.core.runtime.IStatus;
   import org.eclipse.core.runtime.Path;
   import org.eclipse.core.runtime.Status;
  @@ -141,7 +142,8 @@
       /**
        * @see org.apache.cactus.eclipse.containers.IContainerProvider#start(org.apache.cactus.eclipse.containers.ContainerInfo)
        */
  -    public void start(ContainerInfo theContainerInfo) throws CoreException
  +    public void start(ContainerInfo theContainerInfo, IProgressMonitor thePM)
  +        throws CoreException
       {
           String[] targets = getMasked("start.");
           AntRunner runner = createAntRunner(targets);
  @@ -169,6 +171,7 @@
                       e));
           }
           startHelper.setTestURL(testURL);
  +        startHelper.setProgressMonitor(thePM);
           startHelper.execute();
       }
   
  @@ -178,7 +181,8 @@
       public void deploy(
           String theContextPath,
           URL theDeployableObject,
  -        Credential theCredentials)
  +        Credential theCredentials,
  +        IProgressMonitor thePM)
           throws CoreException
       {
           contextPath = theContextPath;
  @@ -186,14 +190,17 @@
           antArguments.add("-Dwar.path=" + warPath);
           antArguments.add("-Dcontext.path=" + theContextPath);
           String[] targets = getMasked("prepare.");
  -        createAntRunner(targets).run();
  +        createAntRunner(targets).run(thePM);
   
       }
   
       /**
        * @see org.apache.cactus.eclipse.containers.IContainerProvider#undeploy(java.lang.String, org.apache.cactus.eclipse.containers.Credential)
        */
  -    public void undeploy(String theContextPath, Credential theCredentials)
  +    public void undeploy(
  +        String theContextPath,
  +        Credential theCredentials,
  +        IProgressMonitor thePM)
           throws CoreException
       {
           String[] targets = { "clean" };
  @@ -203,10 +210,11 @@
       /**
        * @see org.apache.cactus.eclipse.containers.IContainerProvider#stop(org.apache.cactus.eclipse.containers.ContainerInfo)
        */
  -    public void stop(ContainerInfo theContainerInfo) throws CoreException
  +    public void stop(ContainerInfo theContainerInfo, IProgressMonitor thePM)
  +        throws CoreException
       {
           String[] targets = getMasked("stop.");
  -        createAntRunner(targets).run();
  +        createAntRunner(targets).run(thePM);
       }
   
       /**
  
  
  

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