<target name="runDo">
<exec executable="gnome-terminal" spawn="true">
<arg line="-t 'Title' --geometry=120x80 -e '/script/path/bin/do.sh'"/>
</exec>
</target>
引用:
http://stackoverflow.com/questions/2177362/how-do-you-launch-a-shell-script-from-ant-on-a-mac