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

public Class WinNTCommandLauncher

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

A command launcher for Windows XP/2000/NT that uses 'cmd.exe' when launching commands in directories other than the current working directory.

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

WinNTCommandLauncherback to summary
public WinNTCommandLauncher(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.