ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject Re: Why don't my selectors select anything?
Date Tue, 29 Mar 2005 15:44:13 GMT
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
View raw message