Order of files in a FileSet (phing)
Pregunta
Is it possible to get the files from a phing FileSet in a specific order (0-9 followed by A-Z for example)? Right now it is taking my numbered files in a completely random order.
<fileset dir="${mydirectory}">
<include name="*" />
</fileset>
Solución
<exec command="cd ${mydirectory}/ && echo *" escape="false" outputProperty="myfiles" />
<append destfile="concatenated.txt">
<filelist dir="${mydirectory}" files="${myfiles}" />
</append>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow