Thanks it works.
The ">" should be removed in the documentation as well ;-)
http://team.andromda.org/docs/andromda-cartridges/index.html
Fabrice
Chad Brandon wrote:
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of skabeat
Sent: Monday, March 07, 2005 3:46 AM
To: andromda-user
Subject: [Andromda-user] Problem with mergeMappingUri
I want to modify various template files inside the hibernate cartridge
without modifying it.
I successfuly enabled the mergeLocation to override some templates with
mine.
But now I would like to use the mergeMappingUri to add templates files
to the cartridge. I've read the documentation and I created a
MergeMapping.xml file (see below) with my new template definition.
I put the full path of this file in my mda/project.xml in the
hibernate-cartridge section.
<mergeMappingsUri>file:/home/foo/MergeMappings.xml</mergeMappingsUri>
but when I run andromda, it looks like it doesn't take my mapping in
account... What did I forgot?
Thanks,
Fabrice
[CB] Looking at your merge mappings <from> element again it looks like you
have one to many '>' at the end: "<![CDATA[<!-- cartridge-template
merge-point -->]]>>". Remove the extra character and it should work.
MergeMappings.xml :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<mappings name="hibernate">
<mapping>
<from><![CDATA[<!-- cartridge-template merge-point -->]]>></from>
<to>
<![CDATA[
<template
path="templates/hibernate/ejb/HibernateSessionEJBLocator.inc.vsl"
outputPattern="$generatedFile"
outlet="session-beans"
overwrite="true"
required="false"
outputToSingleFile="true"
outputOnEmptyElements="false">
<modelElements variable="services">
<modelElement>
<type name="org.andromda.metafacades.uml.ServiceFacade"/>
</modelElement>
</modelElements>
</template>
]]>>
</to>
</mapping>
</mappings>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user