ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Why don't my selectors select anything?
Date Wed, 30 Mar 2005 05:50:45 GMT
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:rambiusparkisanius@yahoo.com]
> 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:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> > 
> > 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/ 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message