ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: How to copy only jars, not jars+directory structure...
Date Wed, 08 Sep 2004 18:06:36 GMT
You should be able to use a flatten mapper to get rid
of the directory structure under the original fileset
during the copy operation.

-Matt

--- "White, Joshua A (HTSC, CASD)"
<Joshua.White@htsco.com> wrote:

> When I write a fileset that looks like this (see
> below) and copy it to my
> WEB-INF/lib directory, I get the hibernate jar as
> expected and a lib
> directory that contains the other jar files.  How do
> I write a single
> fileset that only references the jars and not the
> directory structure (So
> that when I copy it somewhere, I only copy the jar
> files).
>  
> Regards,
>  
> Joshua
>  
>     <fileset
>         dir="${hibernate.dist.dir}"
>         id="hibernate.jar.fileset">
>         <include name="*.jar"/>
>         <include name="/lib/c3p0-0.8.4.5.jar.jar"/>
>         <include name="/lib/cglib-full-2.0.1.jar"/> 
>      
>         <include name="/lib/dom4j-1.4.jar"/>
>         <include name="/lib/ehcache-0.7.jar"/>
>         <include name="/lib/jta.jar"/>
>         <include name="/lib/odmg-3.0.jar"/>
>         <include name="/lib/oscache-2.0.jar"/>
>     </fileset> 
>  
> 
> 
> This communication, including attachments, is for
> the exclusive use of 
> addressee and may contain proprietary, confidential
> or privileged 
> information. If you are not the intended recipient,
> any use, copying, 
> disclosure, dissemination or distribution is
> strictly prohibited. If 
> you are not the intended recipient, please notify
> the sender 
> immediately by return email and delete this
> communication and destroy all copies.
> 
> 



		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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


Mime
View raw message