Echo each file in Fileset with size, date and time
-
11-11-2019 - |
Question
I'm converting a DOS batch file to Ant. At the end of the batch file, I print out a list of files copied including size, date and time using the DOS dir
command. I would like to do the same at the end of the Ant script. So far I have:
<!-- LIST COPIED FILES -->
<target name="summary" depends="backup">
<fileset id="zipfiles" dir="${dest}" casesensitive="yes">
<include name="*.zip"/>
</fileset>
<property name="prop.zipfiles" refid="zipfiles"/>
<echo>${prop.zipfiles}</echo>
</target>
How can I modify the above to print each file on a separate line, with size, date and time?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow