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

public Class Java13CommandLauncher

extends CommandLauncher
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.taskdefs.launcher.VmsCommandLauncher
Imports
java.io.File, .IOException, org.apache.tools.ant.BuildException, .Project, org.apache.tools.ant.types.Commandline

A command launcher for JDK/JRE 1.3 (and higher). Uses the built-in Runtime.exec() command.

Field Summary

Inherited from org.apache.tools.ant.taskdefs.launcher.CommandLauncher:
FILE_UTILS

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
the 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.CommandLauncher:
execgetShellLaunchergetVMLaunchersetShellLaunchersetVMLauncher

Constructor Detail

Java13CommandLauncherback to summary
public Java13CommandLauncher()

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

the working directory where the command should run.

Returns:Process

the created Process.

Annotations
@Override
Exceptions
IOException:
probably forwarded from Runtime#exec.