This is pretty easy, actually - I will try to illustrate:
<target name="run-command">
<exec program="ConsoleTest.exe" basedir="${test.dir}">
<arg value="-cp" />
</exec>
</target>
The isir shell is optional; it indicates where to start the program. But if your program is on the way (like ping), you probably shouldn't worry about that.
Check out the official documentation :)
source
share