org.apache.cactus.eclipse.runner.containers.ant
Class AntContainerManager

java.lang.Object
  extended by org.apache.cactus.eclipse.runner.containers.ant.AntContainerManager
All Implemented Interfaces:
IContainerManager

public class AntContainerManager
extends java.lang.Object
implements IContainerManager

Implementation of IContainerManager based on Ant.

Version:
$Id: AntContainerManager.java 238816 2004-02-29 16:36:46Z vmassol $

Constructor Summary
AntContainerManager(java.lang.String theBuildFilePath, int thePort, java.lang.String theTargetDir, java.util.Hashtable theHomes, java.lang.String theContextURLPath)
          Constructor.
 
Method Summary
 org.eclipse.debug.core.ILaunchConfigurationWorkingCopy createAntLaunchConfiguration(java.lang.String[] theProviderArguments, java.lang.String theTarget)
           
protected  org.eclipse.swt.widgets.Shell getShell()
          Convenience method to get the active Shell.
 void init(int thePort, java.lang.String theTargetDir, java.util.Hashtable theHomes, java.lang.String theContextURLPath)
          Initializer.
 void preparationDone()
          Sets the prepared flag.
 void prepare(org.eclipse.jdt.core.IJavaProject theJavaProject)
          Prepares the container providers for Cactus tests
 void setEclipseRunner(EclipseRunTests theRunner)
           
 void tearDown()
          Tears down the Cactus tests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntContainerManager

public AntContainerManager(java.lang.String theBuildFilePath,
                           int thePort,
                           java.lang.String theTargetDir,
                           java.util.Hashtable theHomes,
                           java.lang.String theContextURLPath)
                    throws org.eclipse.core.runtime.CoreException
Constructor.

Parameters:
theBuildFilePath - path to the Ant build file for this manager
thePort - the port that will be used when setting up the containers
theTargetDir - temporary directory to use for containers configuration
theHomes - ContainerHome array for container config
theContextURLPath - context path of the container provider
Throws:
org.eclipse.core.runtime.CoreException - if an argument is invalid
Method Detail

init

public void init(int thePort,
                 java.lang.String theTargetDir,
                 java.util.Hashtable theHomes,
                 java.lang.String theContextURLPath)
          throws org.eclipse.core.runtime.CoreException
Initializer.

Parameters:
thePort - the port that will be used when setting up the containers
theTargetDir - temporary directory to use for containers configuration
theHomes - ContainerHome array for container config
theContextURLPath - context path of the container provider
Throws:
org.eclipse.core.runtime.CoreException - if an argument is invalid

createAntLaunchConfiguration

public org.eclipse.debug.core.ILaunchConfigurationWorkingCopy createAntLaunchConfiguration(java.lang.String[] theProviderArguments,
                                                                                           java.lang.String theTarget)
                                                                                    throws org.eclipse.core.runtime.CoreException
Parameters:
theTarget - the Ant target to be called
theProviderArguments - the Ant arguments specific for the container provider
Returns:
a launch configuration copy for Ant build
Throws:
org.eclipse.core.runtime.CoreException - if the launch configuration cannot be created

prepare

public void prepare(org.eclipse.jdt.core.IJavaProject theJavaProject)
Description copied from interface: IContainerManager
Prepares the container providers for Cactus tests

Specified by:
prepare in interface IContainerManager
Parameters:
theJavaProject - the Java project to prepare providers for
See Also:
IContainerManager.prepare(org.eclipse.jdt.core.IJavaProject)

tearDown

public void tearDown()
Tears down the Cactus tests

Specified by:
tearDown in interface IContainerManager

getShell

protected org.eclipse.swt.widgets.Shell getShell()
Convenience method to get the active Shell.

Returns:
the active shell

setEclipseRunner

public void setEclipseRunner(EclipseRunTests theRunner)
Parameters:
theRunner - the Eclipse runner to call when tests are done

preparationDone

public void preparationDone()
Sets the prepared flag.



Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.