2013-05-09 45 views
0

我的工作的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"/>

回答

1

设置output属性来指定哪个你的命令的输出应该被重定向文件。这里是ant手册。