ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: Adding file into the specified directory of existing archive
Date Fri, 14 Jan 2005 23:17:43 GMT
You need to something like that:

<jar destfile="myarchive.jar" update="true">
   <fileset dir="${ejb-compiled)"
            includes="META-INF/jboss.xml"/>
</jar>


- Alexey.

Juleni wrote:

>Hello,
>
>  I have a problem to add some file to the specified directory of
>existing archive. Is there possibility to do this?
>
>  I have found only examples for adding file to the existing archive,
>but the file will be added to the root of the archive. For example:
>
><jar destfile="myarchive.jar" update="true">
>   <fileset dir="${ejb-compiled)/META-INF"
>            includes="jboss.xml"/>
></jar>
>
>  It means if I have myarchive.jar with following directory structure
>  inside:   <root>
>               |
>               +- META-INF
>               |
>               +- org
>
>  added file jboss.xml will be placed to the root:
>
>  <root>
>    |
>    +- META-INF
>    |
>    +- org
>    |
>    +- jboss.xml
>
>
>  But I need the jboss.xml file will be placed into the META-INF
>directory as follow:
>
>  <root>
>    |
>    +- META-INF
>    |      |
>    |      +- jboss.xml
>    |
>    +- org
>
>
>   Is there possibility to do this? If yes, can you write some
>example please?
>
>
>   Thank you in advance,
>   with best regards,
>
>   Julian Legeny
>
>
>---------------------------------------------------------------------
>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


Mime
View raw message