ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: Unix commads behaving different in Ant task
Date Mon, 08 May 2006 17:16:06 GMT
Your usage of the find command is incorrect. To find all the jars in
./myDir you would run the following:

Find ./myDir -name *.jar 

You should change the arg line to:

<arg line="$basedir}/myDir -name *.jar"/>

-Rob A

> -----Original Message-----
> From: Venkat Kotu [mailto:vkotu@porticosys.com] 
> Sent: Friday, May 05, 2006 11:42 AM
> To: user@ant.apache.org
> Subject: Unix commads behaving different in Ant task
> 
> Hi,
> 
>  
> 
> I have a situation where in I need to find all the .jar files 
> in  a directory and write it to a temp file. 
> 
>  
> 
> The command from the prompt is : find myDir/*.jar and it 
> lists all the .jar files from myDir directory.
> 
>  
> 
> The ant target defined for the purpose is:
> 
>  
> 
> <target name="list.jars">
> 
>             <exec os="unix" executable="find" 
> outputproperty="temp.txt">
> 
>                         <arg line="$basedir}/myDir/*.jar"/>
> 
>             </exec>
> 
>  </target>
> 
>  
> 
> This does not return any thing.
> 
>  
> 
> What I am doing wrong?
> 
>  
> 
> Thanks
> 
> Venkat Kotu
> 
>  
> 
>  
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message