Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.launcher

public Class CommandLauncherProxy

extends CommandLauncher
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.taskdefs.launcher.MacCommandLauncher, org.apache.tools.ant.taskdefs.launcher.OS2CommandLauncher, org.apache.tools.ant.taskdefs.launcher.PerlScriptCommandLauncher, org.apache.tools.ant.taskdefs.launcher.ScriptCommandLauncher, org.apache.tools.ant.taskdefs.launcher.WinNTCommandLauncher
Imports
java.io.IOException, org.apache.tools.ant.Project

A command launcher that proxies another command launcher. Sub-classes override exec(args, env, workdir).

Field Summary

Modifier and TypeField and Description
private final CommandLauncher
Inherited from org.apache.tools.ant.taskdefs.launcher.CommandLauncher:
FILE_UTILS

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public Process

Returns:

the created Process.
exec
(Project
the Ant project.
project
,
String[]
the command line to execute as an array of strings.
cmd
,
String[]
the environment to set as an array of strings.
env
)

Overrides org.apache.tools.ant.taskdefs.launcher.CommandLauncher.exec.

Launches the given command in a new process.
Inherited from org.apache.tools.ant.taskdefs.launcher.CommandLauncher:
execgetShellLaunchergetVMLaunchersetShellLaunchersetVMLauncher

Field Detail

myLauncherback to summary
private final CommandLauncher myLauncher

Constructor Detail

CommandLauncherProxyback to summary
protected CommandLauncherProxy(CommandLauncher launcher)

Method Detail

execback to summary
public Process exec(Project project, String[] cmd, String[] env) throws IOException

Overrides org.apache.tools.ant.taskdefs.launcher.CommandLauncher.exec.

Launches the given command in a new process. Delegates this method to the proxied launcher.

Parameters
project:Project

the Ant project.

cmd:String[]

the command line to execute as an array of strings.

env:String[]

the environment to set as an array of strings.

Returns:Process

the created Process.

Annotations
@Override
Exceptions
IOException:
forwarded from the exec method of the command launcher.