You have to think about selectors like a SQL "WHERE".
Without a selector you�ll get all
    select * from files
and with selectors you�ll get only a part of that
    select * from files WHERE name="foo"
but your logig was
    select * from files WHERE name="foo" and name="bar"


cheers
Jan

> -----Urspr�ngliche Nachricht-----
> Von: Ivan Ivanov [mailto:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 29. M�rz 2005 17:44
> An: Ant Users List
> Betreff: Re: Why don't my selectors select anything?
> 
> Hello,
> change <and> with <or>
> 
> > TIA for any help!
> > 
> >
> ------------------------------------------------------------------
> > 
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > 
> > <project name="fileset-selector-test"
> > default="do-test" basedir=".">
> > 
> >   <target name="prepare">
> >     <touch file="${basedir}/foo" />
> >     <touch file="${basedir}/bar" />
> >   </target>
> > 
> >   <target name="do-test" depends="prepare">
> >     <fileset id="files" dir="${basedir}">
>        <or>
> >     <selector>
> >       <filename name="foo" />
> >     </selector>
> >     <selector>
> >       <filename name="bar" />
> >     </selector>
>        </or>
> >     </fileset>
> >     <property name="files.converted" refid="files"
> > />
> >     <echo message="property files.converted =
> > ${files.converted}" />
> >   </target>
> > 
> > </project>
> > 
> >
> ------------------------------------------------------------------
> > 
> > Greetings,
> > 
> >     Holger
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
>               
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/ 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to