Name
execon
Synopsis
Executes a system command. This task was deprecated in Ant 1.4; use
the apply task instead.
Attributes
-
dir(1.2, 1.3, File, N) The working directory for the command.
-
executable(1.2, 1.3, String, Y) The name of the command to execute. Does not include command-line arguments.
-
failonerror(1.2, 1.3, boolean, N) If
true, the build fails when the command returns anything other than 0. Defaults tofalse.-
newenvironment(1.3, boolean, N) If
true, do not propagate existing environment variables to the new process. Defaults tofalse.-
os(1.2, 1.3, String, N) A list of operating systems this task applies to. Executes only if the list contains a string matching the return value from
System.getProperty("os.name").-
output(1.2, 1.3, File, N) A file to redirect the command output to.
-
parallel(1.2, 1.3, boolean, N) If
true, the command is executed once, passing all files as arguments. Iffalse, the command is executed once for each file. Defaults tofalse.-
timeout(1.2, 1.3, int, N) The number of milliseconds to wait before stopping the command. Waits infinitely if not specified.
-
type(1.2, 1.3, Enum, N) Determines if names of plain files or directories are sent to the command. Allowable values are
file,dir, orboth. Defaults tofile.
Content
See the apply task.
Example Usage
See the apply task.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access