net.sf.ant4eclipse.model.launch
Class AbstractLaunchConfiguration

java.lang.Object
  extended by net.sf.ant4eclipse.model.launch.AbstractLaunchConfiguration
Direct Known Subclasses:
JavaApplicationLaunchConfiguration, JUnitLaunchConfiguration

public abstract class AbstractLaunchConfiguration
extends java.lang.Object

Abstract base class for launch configurations. A launch configuration specifies how program (e.g. an application or a test case) should be launched.


Constructor Summary
AbstractLaunchConfiguration(java.io.File launchFile, java.lang.String projectName, java.lang.String programArguments, java.lang.String vmArguments, RuntimeClasspathEntry[] classpathEntries, java.lang.String dir)
          Creates a new instance of type AbstractLaunchConfiguration.
 
Method Summary
 RuntimeClasspathEntry[] getClasspathEntries()
          Returns the runtime classpath entries.
 java.io.File getLaunchFile()
          Returns the launch file.
 java.lang.String getProgramArguments()
          Returns the program arguments.
 java.lang.String getProjectName()
          Returns the name of the associated project.
 java.lang.String getVmArguments()
          Returns the vm arguments.
 java.lang.String getWorkingDirectory()
          Returns the currently used working directory.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractLaunchConfiguration

public AbstractLaunchConfiguration(java.io.File launchFile,
                                   java.lang.String projectName,
                                   java.lang.String programArguments,
                                   java.lang.String vmArguments,
                                   RuntimeClasspathEntry[] classpathEntries,
                                   java.lang.String dir)
Creates a new instance of type AbstractLaunchConfiguration.

Parameters:
launchFile - the launch file.
projectName - the name of the associated project.
programArguments - the program arguments.
vmArguments - the vm arguments.
classpathEntries - the runtime classpath entries.
dir - the working directory choosen by the user.
Method Detail

getLaunchFile

public final java.io.File getLaunchFile()
Returns the launch file.

Returns:
Returns the launch file.

getProgramArguments

public final java.lang.String getProgramArguments()
Returns the program arguments.

Returns:
Returns the program arguments.

getProjectName

public final java.lang.String getProjectName()
Returns the name of the associated project.

Returns:
Returns the name of the associated project.

getVmArguments

public final java.lang.String getVmArguments()
Returns the vm arguments.

Returns:
Returns the vm arguments.

getWorkingDirectory

public final java.lang.String getWorkingDirectory()
Returns the currently used working directory. A value of null indicates the default working directory (meaning that the location doesn't matter).

Returns:
The currently used working directory.

getClasspathEntries

public final RuntimeClasspathEntry[] getClasspathEntries()
Returns the runtime classpath entries.

Returns:
Returns the runtime classpath entries.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object