Executing External Programs
The exec task executes
a system command or external program. The attributes for this task
appear in Table 7-2.
Table 7-2. The exec task's attributes
Attribute | Description | Required | Default |
|---|---|---|---|
| Specifies whether you want to append to output and error files. | No | |
| Deprecated. Use | Exactly one of | |
| Specifies the directory where you want to run the command. | No | |
| Specifies the file where standard error output should be stored. | No | |
| Specifies the name of a property where you want to store errors. | No | |
| Specifies the command you want to run (without any command-line arguments). | Exactly one of | |
| Specifies the build should be stopped if the executable can't start. | No | |
| Specifies the build should be stopped if the task encounters errors. | No | |
| Specifies the file where the task should take input to run the executable with. | No | |
| Specifies a string holding the input stream for the executable to run. | No | |
| Specifies you want to send error output to Ant's log. | No | |
| Specifies old environment variables should not be passed as new environment variables to a forked JVM. | No | |
| Specifies the operating systems in which the executable can be run. | No | |
| Specifies the name of a file in which to store the output. | No | |
|