You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Juleni <ju...@opensubsystems.org> on 2005/01/15 00:13:04 UTC
Adding file into the specified directory of existing archive
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
Re[2]: Adding file into the specified directory of existing archive
Posted by Juleni <ju...@opensubsystems.org>.
Hello Alexey,
thank you for your quick response. It works.
thanks again
With best regards,
Julian
Saturday, January 15, 2005, 12:17:43 AM, you wrote:
ANS> You need to something like that:
ANS> <jar destfile="myarchive.jar" update="true">
ANS> <fileset dir="${ejb-compiled)"
ANS> includes="META-INF/jboss.xml"/>
ANS> </jar>
ANS> - Alexey.
ANS> 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
Re: Adding file into the specified directory of existing archive
Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
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