문제

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>
도움이 되었습니까?

해결책

<exec command="cd ${mydirectory}/ &amp;&amp; echo *" escape="false" outputProperty="myfiles" />
<append destfile="concatenated.txt">
    <filelist dir="${mydirectory}" files="${myfiles}" />
</append>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top