Hi
Milene,
It
seems to me that cartridges can't be registered within AndroMDA. You must just
put your
cartridge into the classpath of AndroMDA
generation utility.
With
ANT, for example, it gives something like the following lines into the build.xml
file
<taskdef name="andromda"
classname="org.andromda.core.anttasks.AndroMDAGenTask"
>
<classpath>
<fileset dir="${basedir}/lib">
<include name="commons-lang-*.jar"/>
<include name="commons-logging-*.jar"/>
<classpath>
<fileset dir="${basedir}/lib">
<include name="commons-lang-*.jar"/>
<include name="commons-logging-*.jar"/>
.....
<include name="YOUR-CARTRIDGE.jar"/>
</fileset>
</classpath>
</taskdef>
<property name="model" value="jar:file:YOURMODELFILE"/>
<andromda lastModifiedCheck="false">
<model url=""/>
<repository>
<moduleSearchPath>
<pathelement location="${model.dir}"/>
<pathelement location="${model.dir}/profiles"/>
</moduleSearchPath>
</repository>
<namespace name="YOUR-CARTRIDGE-NAMESPACE" ignore="false">
<property name="languageMappingsUri" value="file:${conf}/JavaMappings.xml"/>
<property name="dd-basepack" value="base.pack.name"/>
<property name="ONE-OUTLET-OF-YOUR-CARTRIDGE" value="${out}"/>
</namespace>
</andromda>
<include name="YOUR-CARTRIDGE.jar"/>
</fileset>
</classpath>
</taskdef>
<property name="model" value="jar:file:YOURMODELFILE"/>
<andromda lastModifiedCheck="false">
<model url=""/>
<repository>
<moduleSearchPath>
<pathelement location="${model.dir}"/>
<pathelement location="${model.dir}/profiles"/>
</moduleSearchPath>
</repository>
<namespace name="YOUR-CARTRIDGE-NAMESPACE" ignore="false">
<property name="languageMappingsUri" value="file:${conf}/JavaMappings.xml"/>
<property name="dd-basepack" value="base.pack.name"/>
<property name="ONE-OUTLET-OF-YOUR-CARTRIDGE" value="${out}"/>
</namespace>
</andromda>
-----Message d'origine-----
De : Milene Fiorio [mailto:[EMAIL PROTECTED]
Envoyé : lundi 29 novembre 2004 20:30
À : [EMAIL PROTECTED]
Objet : [Andromda-user] Registring a new Cartridge
I´ve created a new cartridge and I don´t know how to register it into androMDA 3.0.Could u help me?thank´s!Milene__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com