在 Ant 中传递 Arg [英] Passing Arg in Ant

查看:26
本文介绍了在 Ant 中传递 Arg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码块处理 Ant 脚本:

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>

我要运行的命令如下:

php -l index-1.php > index-1.html

我该怎么办……!因为上面的代码正在运行.但我不想要 <arg value="-l"/>

How can i do it...! because above code is working. but i don't want <arg value="-l"/>

我想像 <arg value="-l"/> 一样传递它<arg value="> *.html"/>

推荐答案

设置 output 属性以指定命令输出应重定向到的文件.这是ant 手册.

Set the output attribute to specify the file to which the output of your command should be redirected. Here's the ant manual.

这篇关于在 Ant 中传递 Arg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆