jruaux      2003/02/24 05:43:49

  Modified:    integration/eclipse/src/java/org/apache/cactus/eclipse/ant
                        EclipseRunTests.java
  Log:
  Moved the code around to centralize the Ant related code.
  
  Revision  Changes    Path
  1.2       +10 -3     
jakarta-cactus/integration/eclipse/src/java/org/apache/cactus/eclipse/ant/EclipseRunTests.java
  
  Index: EclipseRunTests.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/integration/eclipse/src/java/org/apache/cactus/eclipse/ant/EclipseRunTests.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EclipseRunTests.java      24 Feb 2003 13:10:33 -0000      1.1
  +++ EclipseRunTests.java      24 Feb 2003 13:43:49 -0000      1.2
  @@ -56,6 +56,8 @@
    */
   package org.apache.cactus.eclipse.ant;
   
  +import org.apache.cactus.eclipse.containers.ant.GenericAntProvider;
  +import org.apache.cactus.eclipse.launcher.CactusLaunchShortcut;
   import org.apache.cactus.eclipse.ui.CactusPlugin;
   import org.apache.tools.ant.Task;
   import org.eclipse.swt.widgets.Display;
  @@ -102,12 +104,17 @@
       {
           isFinished = true;
       }
  -    
  +
       /**
        * Launches Cactus tests.
        */
       public void run()
       {
  -        CactusPlugin.getDefault().launchCactusLaunchShortcut(this);
  +        CactusLaunchShortcut launchShortcut =
  +            CactusPlugin.getDefault().getCactusLaunchShortcut();
  +        GenericAntProvider antProvider =
  +            (GenericAntProvider) launchShortcut.getContainerProvider();
  +        antProvider.setEclipseRunner(this);
  +        launchShortcut.launchJunitTests();
       }
   }
  
  
  

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

Reply via email to