ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Rees" <j...@alpsgiken.gr.jp>
Subject Re: Merging XML files
Date Mon, 08 Apr 2002 02:01:28 GMT
Drew Davidson asked:

> I want to merge two or more XML files into one, so that I can split up
> relatively unrelated configurations (struts-config.xml, *.ejb for
> example) and merge them together (because the deployment requires that
> there be only one struts-config.xml and all related EJBs need to be in
> one deployment descriptor).
>
> So say that I have the following two files:
>
> Foo.ejb:
> <ejb-jar>
>     <enterprise-beans>
>         <entity>
>             <ejb-name>Foo</ejb-name>
>         </entity>
>     </enterprise-beans>
> </ejb-jar>
>
> Bar.ejb:
>
> <ejb-jar>
>     <enterprise-beans>
>         <entity>
>             <ejb-name>Bar</ejb-name>
>         </entity>
>     </enterprise-beans>
> </ejb-jar>
>
> I want to merge into:
>
> <ejb-jar>
>     <enterprise-beans>
>         <entity>
>             <ejb-name>Foo</ejb-name>
>         </entity>
>         <entity>
>             <ejb-name>Bar</ejb-name>
>         </entity>
>     </enterprise-beans>
> </ejb-jar>
>
>
> Anyone know of a task to accomplish this?

How often do you want to do this?

(I haven't done it, but my first response was "Use a text editor and some
common sense.")

Joel Rees
Alps Giken Kansai Systems Develoment
Suita, Osaka




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


Mime
View raw message