Skip to content

Instantly share code, notes, and snippets.

@Sitebase
Created January 11, 2013 12:43
Show Gist options
  • Save Sitebase/4510386 to your computer and use it in GitHub Desktop.
Save Sitebase/4510386 to your computer and use it in GitHub Desktop.
Phing list fileset
<fileset id="src.php.custom" dir="${base.dir}src/application/">
<include name="controllers/**/*.php" />
<include name="core/**/*.php" />
<include name="models/**/*.php" />
<include name="modules/**/*.php" />
<include name="helpers/**/*.php" />
<exclude name="**/libraries/**/*.php" />
</fileset>
<target name="fileset-list">
<foreach param="filename" absparam="absfilename" target="echoFilesetFile">
<fileset refid="src.php.custom"/>
</foreach>
</target>
<target name="echoFilesetFile">
<echo>file: rel:${filename}|abs:${absfilename}</echo>
</target>
@Sitebase
Copy link
Author

List with:
phing dummy | grep "file:"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment