net.sf.ant4eclipse.ant.task.launch
Class LaunchPropertyTask

java.lang.Object
  extended by Task
      extended by net.sf.ant4eclipse.ant.task.launch.AbstractLaunchTask
          extended by net.sf.ant4eclipse.ant.task.launch.LaunchPropertyTask

public class LaunchPropertyTask
extends AbstractLaunchTask

This task is used to load some property values from a launch configuration.


Constructor Summary
LaunchPropertyTask()
          Initializes this task.
 
Method Summary
 void execute()
          
 java.lang.String getMainclass()
          Returns the main class.
 java.lang.String getProgramargs()
          Returns the program arguments associated with the launch configuration.
 java.lang.String getVmargs()
          Returns the VM arguments associated with the launch configuration.
 java.lang.String getWorkingDir()
          Returns the name of the working directory property.
 void setMainclass(java.lang.String mainclass)
          Changes the class of the main class.
 void setProgramargs(java.lang.String programargs)
          Changes the program arguments.
 void setVmargs(java.lang.String vmargs)
          Changes the VM arguments.
 void setWorkingDir(java.lang.String dir)
          Changes the working directory property.
protected  java.lang.Class[] validTypes()
          Returns a list of classes which are valid launch configuration types.
 
Methods inherited from class net.sf.ant4eclipse.ant.task.launch.AbstractLaunchTask
getLaunchFile, getLaunchProject, getWorkspace, isLaunchConfigurationSet, isWorkspaceSet, readLaunchConfiguration, readLaunchProject, requireWorkspaceSet, setInitialiseWorkspace, setLaunchFile, setWorkspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaunchPropertyTask

public LaunchPropertyTask()
Initializes this task.

Method Detail

setWorkingDir

public void setWorkingDir(java.lang.String dir)
Changes the working directory property.

Parameters:
dir - The new name of the working directory property.

getWorkingDir

public java.lang.String getWorkingDir()
Returns the name of the working directory property.

Returns:
The name of the working directory property.

setVmargs

public void setVmargs(java.lang.String vmargs)
Changes the VM arguments.

Parameters:
vmargs - The VM arguments associated with the launch configuration.

getVmargs

public java.lang.String getVmargs()
Returns the VM arguments associated with the launch configuration.

Returns:
The VM arguments associated with the launch configuration.

setProgramargs

public void setProgramargs(java.lang.String programargs)
Changes the program arguments.

Parameters:
programargs - The program arguments associated with the launch configuration.

getProgramargs

public java.lang.String getProgramargs()
Returns the program arguments associated with the launch configuration.

Returns:
The program arguments associated with the launch configuration.

setMainclass

public void setMainclass(java.lang.String mainclass)
Changes the class of the main class.

Parameters:
mainclass - A fully qualified main class.

getMainclass

public java.lang.String getMainclass()
Returns the main class.

Returns:
The main class.

execute

public void execute()
             throws BuildException

Throws:
BuildException

validTypes

protected java.lang.Class[] validTypes()
Returns a list of classes which are valid launch configuration types.

Specified by:
validTypes in class AbstractLaunchTask
Returns:
A list of classes which are valid launch configuration types. Not null.