php - phing - delete directory contents without directory itself -
i trying automate php build, part of deleting selected content directory, in below snippet
<delete verbose="${phing.verbose}"> <fileset dir="${svn.exportdir}/includes" casesensitive="false"> <exclude name="alerts.php"/> <exclude name="config.php"/> <exclude name="${client.name}_config.php"/> <exclude name="defaults.php"/> <exclude name="func.inc.php"/> </fileset> </delete>
now above code remove includes folder well, undesirable. phing not understand
dir="${svn.exportdir}/includes/**"
(directory includes/** not found)
, , adding
<exclude name="${svn.exportdir}/includes"/>
to delete task kind of awkward, wondering whether there better way remove selected content directory phing?
it know bug, see http://www.phing.info/trac/ticket/796 should working versions 2.9+
for me not work on 2.9.1
Comments
Post a Comment