ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drew Davidson <d...@eblox.com>
Subject Merging XML files
Date Fri, 05 Apr 2002 18:56:21 GMT
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?

- Drew


--
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