Hello,


 I've wrote my own cartridge, but it doesn't work. No Error.



Here are thw files, I've created:



Entity.vsl

#set ($generatedFile = "${entity.packagePath}/${entity.entityName}.jdo")

<?xml version="1.0" encoding="$xmlEncoding"?>

<!DOCTYPE jdo SYSTEM "jdo.dtd">

<jdo>

        <package name="$entity.packageName">

#foreach($entity in $entities)

        <class name="$entity.name"/>

        </package>

</jdo>

------------------------------------------------------------------

namespace.xml



<?xml version="1.0" encoding="ISO-8859-1" ?>



<namespace name="jdo">

    <components>

        <component name="cartridge"/>

    </components>

    <properties>

        <propertyGroup name="Outlets">

            <documentation>

                Defines the locations to which output is generated.

            </documentation>

            <property name="entities">

                <documentation>

                    The directory to which jdo entities are generated.

                </documentation>

            </property>

        </propertyGroup>

    </properties>

</namespace>

------------------------------------------------------------------------

andromda-cartridge.xml

<!--

    This is the descriptor for the AndroMDA cartridge for

    the O/R mapper "PHP".

-->



<cartridge name="jdo">

    <!-- define the template objects that are made availble to the template -->

    <template

        path="templates/Entity.vsl"

        outputPattern="$generatedFile"

        outlet="entities"

        overwrite="true">

        <modelElements variable="entity">

            <modelElement>

                <type name="org.andromda.cartridges.uml.Entity">

                </type>

            </modelElement>

        </modelElements>

    </template>

    

<!-- FINE TEMPLATES SMARTY -->



</cartridge>



Can you help me!
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3749#3749
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to