我正在使用以下代码块处理Ant脚本:
<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>我想运行的命令如下:
php -l index-1.php > index-1.html我怎么才能做到...!因为上面的代码工作正常。但我不想让<arg value="-l"/>
我想像<arg value="-l"/> <arg value="> *.html"/>一样通过它
发布于 2013-05-09 20:01:01
设置output属性以指定命令输出应重定向到的文件。这是ant手册。
https://stackoverflow.com/questions/16461245
复制相似问题