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

public Class MacCommandLauncher

extends CommandLauncherProxy
Class Inheritance
Imports
java.io.File, .IOException, org.apache.tools.ant.Project

A command launcher for Mac that uses a dodgy mechanism to change working directory before launching commands.

Constructor Summary

AccessConstructor and Description
public

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
,
File
working directory where the command should run.
workingDir
)

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

Launches the given command in a new process, in the given working directory.
Inherited from org.apache.tools.ant.taskdefs.launcher.CommandLauncherProxy:
exec

Constructor Detail

MacCommandLauncherback to summary
public MacCommandLauncher(CommandLauncher launcher)

Method Detail

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

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

Launches the given command in a new process, in the given working directory.

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.

workingDir:File

working directory where the command should run.

Returns:Process

the created Process.

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