Hi folks,


no, the properties in the cartridge descriptor (andromda-cartridge.xml)
are a yet undocumented feature that will be used for dynamic cartridge
selection in the future. What you possibly want are the user properties
that you can pass in as an element of the <andromda> task in the build.xml
file. It looks like this:



  <andromda basedir="build/model/unzipped"

            includes="CarRentalSystem20.xmi"

            lastModifiedCheck="false"

            typeMappings="${andromda-core.home}/src/xml/TypeMapping.xml"


  >

     <userProperty name="foreignKeySuffix" value="_FK" />



  </andromda>



These user properties are put into the Velocity context and are accessible
from the templates (e.g. as "$foreignKeySuffix").



Cheers...

Matthias



 --- Ursprüngliche Nachricht ---

Datum: 15.12.2003 06:17

Von: "Brian Topping" <[EMAIL PROTECTED]>

An: "Herve Tchepannou" <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]>

Betreff: RE: [Andromda-user] Can I access the value of a <property />
defined in a cartridgedescriptor?



> They are put into the context before merging the template, so you can
use

> them by name directly...

>

> -b

>

> > -----Original Message-----

> > From: Herve Tchepannou [mailto:[EMAIL PROTECTED]

> > Sent: Sunday, December 14, 2003 10:23 PM

> > To: [EMAIL PROTECTED]

> > Subject: [Andromda-user] Can I access the value of a <property />

> > defined in a cartridgedescriptor?

> >

> >

> > Is there a way to access in templates properties defined in cartridge

> > descriptors?

> >

> >

> >

> > -------------------------------------------------------

> > This SF.net email is sponsored by: SF.net Giveback Program.

> > Does SourceForge.net help you be more productive?  Does it

> > help you create better code?  SHARE THE LOVE, and help us help

> > YOU!  Click Here: http://sourceforge.net/donate/

> > _______________________________________________

> > Andromda-user mailing list

> > [EMAIL PROTECTED]

> > https://lists.sourceforge.net/lists/listinfo/andromda-user

> >

>

>

> -------------------------------------------------------

> This SF.net email is sponsored by: SF.net Giveback Program.

> Does SourceForge.net help you be more productive?  Does it

> help you create better code?  SHARE THE LOVE, and help us help

> YOU!  Click Here: http://sourceforge.net/donate/

> _______________________________________________

> Andromda-user mailing list

> [EMAIL PROTECTED]

> https://lists.sourceforge.net/lists/listinfo/andromda-user

>

>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to