ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkat Kotu" <vk...@porticosys.com>
Subject Unix commads behaving different in Ant task
Date Fri, 05 May 2006 18:41:34 GMT
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

 

 


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