使用Ant目标而不是exec和开始停止JBoss服务器 传递运行脚本,即
<target="start-jboss" description="Starts JBoss instance" depends="prepare">
<exec dir="${jboss.home}/bin" executable="cmd.exe" os="Windows07">
<arg line="/c run.bat -S"/>
<env key="NOPAUSE" value="true"/>
</exec>
</target>