2013-05-09 86 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手冊。