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

public Class VmsCommandLauncher

extends Java13CommandLauncher
Class Inheritance
Imports
java.io.BufferedWriter, .File, .FileWriter, .IOException, org.apache.tools.ant.Project, org.apache.tools.ant.util.FileUtils

A command launcher for VMS that writes the command to a temporary DCL script before launching commands. This is due to limitations of both the DCL interpreter and the Java VM implementation.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private File
createCommandFile(final Project project, String[] cmd, String[] env)

private void
deleteAfter(final File f, final Process p)

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.
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.Java13CommandLauncher.exec.

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

Constructor Detail

VmsCommandLauncherback to summary
public VmsCommandLauncher()

Method Detail

createCommandFileback to summary
private File createCommandFile(final Project project, String[] cmd, String[] env) throws IOException
deleteAfterback to summary
private void deleteAfter(final File f, final Process p)
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.

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.
execback to summary
public Process exec(Project project, String[] cmd, String[] env, File workingDir) throws IOException

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

Launches the given command in a new process, in the given working directory. Note that under Java 1.4.0 and 1.4.1 on VMS this method only works if workingDir is null or the logical JAVA$FORK_SUPPORT_CHDIR needs to be set to TRUE.

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.