This seems to be done using a dirty command line.
<Exec Command="dir .\RelPath\ToFolder\ToSearchIn /S /AR /B > readonlyfiles.temp.txt"/> <ReadLinesFromFile File="readonlyfiles.temp.txt"> <Output TaskParameter="Lines" ItemName="ReadOnlyFiles"/> </ReadLinesFromFile> <Delete Files="readonlyfiles.temp.txt"/>
This gives absolute file paths.
To get relative paths, try something like this:
<Exec Command="dir .\RelPath\ToFolder\ToSearchIn /S /AR /B > readonlyfiles.temp.txt"/> <FileUpdate Files="readonlyfiles.temp.txt" Multiline="True" Regex="^.*\\RelPath\\ToFolder\\ToSearchIn" ReplacementText="RelPath\ToFolder\ToSearchIn" /> <ReadLinesFromFile File="readonlyfiles.temp.txt"> <Output TaskParameter="Lines" ItemName="ReadOnlyZipFiles"/> </ReadLinesFromFile> <Delete Files="readonlyfiles.temp.txt"/>
source share