Command Line task
Command Line task
Description
Task to process command line with facilities.
CommandLine task parameters
Attribute | Description | Value | Required |
---|---|---|---|
cmd | the command line, with arguments | yes | |
dir | exec dir | no | |
tofile | name of a file to which to write the output | no | |
delimiter | line delimiter | no |
Examples
<project name="command line task">
<taskdef name="commandline"
classname="net.sourceforge.ant4x.taskdefs.CommandLineTask"
classpath="PATH/TO/ant4x.jar"/>
<target name="ls">
<commandline cmd="ls -l" />
<commandline dir="subdir" cmd="ls -l" />
</target>
</project>