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

public Class PerlScriptCommandLauncher

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

A command launcher that uses an auxiliary perl script to launch commands in directories other than the current working directory.

Field Summary

Modifier and TypeField and Description
private final String

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

Field Detail

myScriptback to summary
private final String myScript

Constructor Detail

PerlScriptCommandLauncherback to summary
public PerlScriptCommandLauncher(String script, 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.