ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@apache.org>
Subject Re: Including Directory in ear File
Date Fri, 17 Dec 2004 09:08:26 GMT


ROW M, VISHAL wrote:
> Hi 
> 
>  This is a very basic question. When creating an ear file I want to
> inculde files with path entry . How to do it.?
>  For example I want to create an ear called Sample.ear which will have
> files called cl1.jar , cl2.jar with their path entry as App-inf/Lib.
>  
> 

Use a zipfileset and specify a prefix - something like this:

<ear appxml="${appconf.dir}/application.xml" earfile="${ear.file}">
     <zipfileset dir="${lib.app.dir}" prefix="lib" includes="*.jar"/>
</ear>


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


Mime
View raw message