How to exclude a directory from ant fileset, based on directories contents
The following approach works for me: <exclude name=”**/dir_name_to_exclude/**” />
The following approach works for me: <exclude name=”**/dir_name_to_exclude/**” />
Use the PathConvert task: <fileset id=”myfileset” dir=”../sounds”> <include name=”*.wav” /> <include name=”*.ogg” /> </fileset> <pathconvert pathsep=”${line.separator}” property=”sounds” refid=”myfileset”> <!– Add this if you want the path stripped –> <mapper> <flattenmapper /> </mapper> </pathconvert> <echo file=”sounds.txt”>${sounds}</echo>