You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Denis Bessmertnyj <db...@isd.dp.ua> on 2007/03/22 10:22:41 UTC
Ant: copy files
Hi,
I need to do the following things:
I want to copy some files, which I know, from one directory to another.
But I'm a bit confused with fileset syntax. I want to specify all jar files
as nested elements.
I have tried to do the folllowing, but nothing:
<copy todir="${web_app_src_dir}/WEB-INF/lib/">
<fileset dir="${jardir}">
<includesfile name="CLib.jar"/>
<includesfile name="corbaLib.jar"/>
<includesfile name="BLOrame.jar"/>
<includesfile name="IIOPFr.jar"/>
</fileset>
</copy>
Please, help me.
thnx.
---
Denis Bessmertnyj,
GUI SoftWeb
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: copy files
Posted by Gilles Scokart <gs...@gmail.com>.
Look at the example there :
http://ant.apache.org/manual/CoreTasks/copy.html and there :
http://ant.apache.org/manual/CoreTypes/fileset.html
You should find something similar to what you try to do.
Gilles
> -----Original Message-----
> From: Denis Bessmertnyj [mailto:dbes@isd.dp.ua]
> Sent: jeudi 22 mars 2007 10:23
> To: user@ant.apache.org
> Subject: Ant: copy files
>
> Hi,
>
> I need to do the following things:
> I want to copy some files, which I know, from one directory to another.
> But I'm a bit confused with fileset syntax. I want to specify all jar
> files
> as nested elements.
>
> I have tried to do the folllowing, but nothing:
> <copy todir="${web_app_src_dir}/WEB-INF/lib/">
> <fileset dir="${jardir}">
> <includesfile name="CLib.jar"/>
> <includesfile name="corbaLib.jar"/>
> <includesfile name="BLOrame.jar"/>
> <includesfile name="IIOPFr.jar"/>
> </fileset>
> </copy>
>
> Please, help me.
>
> thnx.
>
> ---
> Denis Bessmertnyj,
> GUI SoftWeb
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org