Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ant 运行bat文件时使命令行保持打开状态_Ant_Batch File - Fatal编程技术网

Ant 运行bat文件时使命令行保持打开状态

Ant 运行bat文件时使命令行保持打开状态,ant,batch-file,Ant,Batch File,我希望批处理文件在处理完成后保持打开状态 这是我的密码: set CLASSPATH=C:\XSLTANT\examples\word_transform\apache-ant-1.8.1\bin set PATH=%CLASSPATH% ant >> transform.log echo "See transform.log for results" pause 它在运行antbuild后立即关闭。有什么想法吗 谢谢。更改行: ant >> transform.log

我希望批处理文件在处理完成后保持打开状态

这是我的密码:

set CLASSPATH=C:\XSLTANT\examples\word_transform\apache-ant-1.8.1\bin
set PATH=%CLASSPATH%
ant >> transform.log
echo "See transform.log for results"
pause
它在运行
ant
build后立即关闭。有什么想法吗

谢谢。

更改行:

ant >> transform.log


当从一个批处理文件运行另一个批处理文件时,这是必需的。

谢谢您的帮助。我是否可以使用另一个参数在屏幕和日志文件中记录ant输出?
CALL ant >> transform.log