a filelist is ordered, a fileset is selective but non-ordered. i'd like to combine features of each, either an ordered fileset, or a selective filelist (don't include non-existant files).
in the example build.xml shown here, the default target doesn't work because there is no baz.xml, but the default2 target works fine. basically, i'm build war's and ear projects from a main "build all" type project. it should build the list of files in the order they're specified if they exist. is there anyway to get this functionality? <!-- build.xml --> <project name="anttest" default="default"> <target name="default"> <subant> <filelist dir="."> <file name="foo.xml"/> <file name="bar.xml"/> <file name="baz.xml"/> </filelist> </subant> </target> <target name="default2"> <subant> <fileset dir="."> <include name="foo.xml"/> <include name="bar.xml"/> <include name="baz.xml"/> </fileset> </subant> </target> </project> <!-- foo.xml --> <project name="anttest" default="default"> <target name="default"> <echo> foo.xml </echo> </target> </project> <!-- bar.xml --> <project name="anttest" default="default"> <target name="default"> <echo> bar.xml </echo> </target> </project>