org.apache.cactus.eclipse.runner.launcher
Class JettyCactusLaunchConfiguration

java.lang.Object
  extended by org.eclipse.debug.core.model.LaunchConfigurationDelegate
      extended by org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
          extended by org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate
              extended by org.apache.cactus.eclipse.runner.launcher.CactusLaunchConfiguration
                  extended by org.apache.cactus.eclipse.runner.launcher.JettyCactusLaunchConfiguration
All Implemented Interfaces:
org.eclipse.debug.core.IDebugEventSetListener, org.eclipse.debug.core.model.ILaunchConfigurationDelegate, org.eclipse.debug.core.model.ILaunchConfigurationDelegate2, org.eclipse.jdt.junit.ITestRunListener

public class JettyCactusLaunchConfiguration
extends CactusLaunchConfiguration

Provides a launcher to start Cactus tests. This is done by extending the JUnit Plugin launch configuration and adding Cactus specific VM configuration (Cactus jars, VM parameters) and by registering this class as an "org.eclipse.debug.core.launchConfigurationTypes" Eclipse extension point.

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

Field Summary
static java.lang.String ID_CACTUS_APPLICATION_JETTY
          Id under which the Cactus launch configuration has been registered.
 
Fields inherited from class org.apache.cactus.eclipse.runner.launcher.CactusLaunchConfiguration
ID_CACTUS_APPLICATION, VM_ARG_SEPARATOR
 
Fields inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus
 
Fields inherited from interface org.eclipse.jdt.junit.ITestRunListener
STATUS_ERROR, STATUS_FAILURE, STATUS_OK
 
Constructor Summary
JettyCactusLaunchConfiguration()
           
 
Method Summary
protected  org.eclipse.jdt.core.IClasspathEntry[] getCactusClasspath()
           
protected  java.lang.String getCactusVMArgs(org.eclipse.jdt.core.IJavaProject theJavaProject)
           
 
Methods inherited from class org.apache.cactus.eclipse.runner.launcher.CactusLaunchConfiguration
launch, testEnded, testFailed, testReran, testRunEnded, testRunStarted, testRunStopped, testRunTerminated, testStarted, testTreeEntry
 
Methods inherited from class org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate
abort, collectExecutionArguments, evaluateTests, getClasspath, preLaunchCheck, verifyMainTypeName
 
Methods inherited from class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
getBootpath, getBootpathExt, getBreakpoints, getBuildOrder, getDefaultWorkingDirectory, getEnvironment, getJavaLibraryPath, getJavaProject, getJavaProjectName, getLaunchManager, getMainTypeName, getProgramArguments, getProjectsForProblemSearch, getVMArguments, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getVMRunner, getVMSpecificAttributesMap, getWorkingDirectory, getWorkingDirectoryPath, handleDebugEvents, isAllowTerminate, isLaunchProblem, isStopInMain, preLaunchCheck, prepareStopInMain, setDefaultSourceLocator, verifyJavaProject, verifyVMInstall, verifyWorkingDirectory
 
Methods inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate
addReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getLaunch, saveBeforeLaunch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_CACTUS_APPLICATION_JETTY

public static final java.lang.String ID_CACTUS_APPLICATION_JETTY
Id under which the Cactus launch configuration has been registered.

See Also:
Constant Field Values
Constructor Detail

JettyCactusLaunchConfiguration

public JettyCactusLaunchConfiguration()
Method Detail

getCactusClasspath

protected org.eclipse.jdt.core.IClasspathEntry[] getCactusClasspath()
                                                             throws org.eclipse.core.runtime.CoreException
Overrides:
getCactusClasspath in class CactusLaunchConfiguration
Returns:
an array of classpaths needed for Cactus
Throws:
org.eclipse.core.runtime.CoreException - when an error occurs while trying to build the classpath

getCactusVMArgs

protected java.lang.String getCactusVMArgs(org.eclipse.jdt.core.IJavaProject theJavaProject)
Overrides:
getCactusVMArgs in class CactusLaunchConfiguration
Parameters:
theJavaProject - the Java project to get the arguments for
Returns:
an array of the specific Cactus VM arguments


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