2013-12-13 8 views
0

모든 ".php"확장명을 지정하도록 특정 폴더 내에 모든 파일 이름을 반향시킬 수있는 방법이 있습니까?Phing echo filename 특정 확장자

<?xml version="1.0"?> 
<project name="build" default="build"> 
    <target name="build"> 
     <foreach param="filename" absparam="absfilename" target="subtask"> 
      <fileset dir="path/to/folder"> 
       <include name="*.php"/> 
      </fileset> 
     </foreach> 
    </target> 

    <target name="subtask"> 
     <echo msg="${absfilename}" /> 
    </target> 
</project> 
: 여기
folder-to-check 
    | 
    - file-to-get1.php 
    - file-to-get2.php 
    - otherfile.avi 
    - otherfolder 

답변

0

특정 폴더에있는 모든 파일 * .PHP 에코의 build.xml의 예