I haven't looked at the differences between the two versions, but a sure fix
is to use <exclude name="ext/**"/>

I think even "ext/" (trailing slash) will do the trick.

    Erik


----- Original Message -----
From: "Joylene Nettleton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 07, 2001 5:20 PM
Subject: Copy command between Ant 1.3 and 1.4


> Under my "${src.lib.dir} there are some lib files and a ext sub-directory
> with some file, e.g.
>    {src.lib.dir}/*.jar
>    {src.lib.dir}/ext/*.jar
>
> When I use Ant 1.3 version with the following commands, only
> {src.lib.dir}/*.jar are copied to ${dest.lib.dir}.  When I use Ant 1.4
> everything under {src.lib.dir} are copied over including files under ext.
I
> wonder if this is a bug in Ant 1.4 since I could not find any reference in
> docs.
>
>   <!-- Copy Lib files -->
>   <target name="copy-lib-files" if="lib.present">
>     <copy todir="${dest.lib.dir}">
>       <fileset dir="${src.lib.dir}">
>         <exclude name="ext"/>
>       </fileset>
>     </copy>
>   </target>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to