在ANT传递精氨酸 [英] Passing Arg in ANT
本文介绍了在ANT传递精氨酸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的工作的Ant脚本如下code座:
I am working on Ant Script with following code block:
<target name="phplint">
<apply dir="${dir.publish.php}" executable="${tool.php.lint}" parallel="true" failonerror="false">
<fileset dir="${dir.publish.php}">
<include name="**/*.php"/>
</fileset>
<arg value="-l" />
<srcfile/>
<mapper type="glob" from="*.php" to="*.html"/>
</apply>
</target>
我要运行的命令如下:
The command which i want to run is as below:
php -l index-1.php > index-1.html
我该怎么办呢?!因为上述code正在工作。但我不希望&LT; ARG值= - 1/&GT;
我想通过它像&LT; ARG值= - 1/&GT; &LT; ARG值=&GT; *。html的/&GT;
推荐答案
将输出
属性来指定,你的命令的输出应该被重定向文件。这里的蚂蚁手册。
Set the output
attribute to specify the file to which the output of your command should be redirected. Here's the ant manual.
这篇关于在ANT传递精氨酸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文