I -still- do this occasionally and smack myself really hard afterwards. From the manual:
Selectors are available as nested elements within the FileSet. If any of the selectors within the FileSet do not select the file, the file is not considered part of the FileSet. This makes a FileSet equivalent to an <and> selector container. This means that your second example tries to select any file whose name is DVMainLogoComponent.jsp, and whose name is also DVHitlistLogoComponent.jsp, and whose name is also DVHyperlinksComponent.jsp . Since I am unaware of a filesystem on which this is possible, nothing is selected. :) Incidentally, you don't need the extra set of <selector> elements in your first example. br, Matt --- "Tardif, Sebastien" <[EMAIL PROTECTED]> wrote: > This work: > <copy todir="${jsp.dst.dir}"> > <fileset dir="${dataviewservlet.dir}/sample"> > <selector> > <or> > <filename name="DVMainLogoComponent.jsp"/> > <filename name="DVHitlistLogoComponent.jsp"/> > <filename name="DVHyperlinksComponent.jsp"/> > </or> > </selector> > </fileset> > </copy> > > But this doesn't: > <copy todir="${jsp.dst.dir}"> > <fileset dir="${dataviewservlet.dir}/sample"> > <filename name="DVMainLogoComponent.jsp"/> > <filename name="DVHitlistLogoComponent.jsp"/> > <filename name="DVHyperlinksComponent.jsp"/> > </fileset> > </copy> > > And I received no error message so it's a valid Ant > XML. > > Anybody understand why the second version doesn't > work? > What's the logic of the test? > > I'm using ANT 1.6.5 which is the latest official > release. > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]