Hi Francois, About the warnings, they could be a bug, since I always have a "default" namespace I haven't run into them, can you try adding a "default" namespace with your andromda task, and if the warnings go away, can you file a bug? There shouldn't be any warnings if you have the "xsd" namespace set without the "default" one.
About the velocity properties, I'll take a look, they should be loading. Chad --- François_Eric <[EMAIL PROTECTED]> wrote: > Thanks for your answer Chad but unfortunately it > doesn't seem to work. > > To put you in the context of my application, I am > working on a xsd > template. This template has the following > project.xml: > > <cartridge name="xsd"> > <!-- define the template objects that are made > availble to the > template --> > <templateObject name="xsdhelper" > className="org.andromda.cartridges.xsd.metafacades.XsdHelper"/> > <templateObject name="stringutils" > className="org.andromda.utils.StringUtils"/> > <template > sheet="templates/xsd.vsl" > outputPattern="{0}/xsd/{1}.xsd" > outlet="xsd" > overWrite="true"> > <modelElements variable="mainpackage"> > <modelElement stereotype="Model"/> > </modelElements> > </template> > </cartridge> > > The ant task that compiles this cartridge is as > follows: > > <andromda basedir="." > modelURL="${umlModel}" > lastModifiedCheck="true"> > > <!-- This will generate the XML schema > --> > <namespace name="xsd" ignore="false"> > <property name="xsd" > value="${andromda.gensrc.dir}" > ignore="false"/> > </namespace> > </andromda> > > I have put as you said a xsd-velocity.properties > file in META-INF and it > is well packaged in my cartridge. The properties > are not taken in > account though when I run the andromda ant task. > > I don't know if this can have any relation or if > someone has seen these > warnings before but when I run the andromda task I > have the following > output: > > 11:18:16,765 INFO [CartridgeFinder] found cartridge > --> 'java' > 11:18:16,843 INFO [CartridgeFinder] found cartridge > --> 'meta' > 11:18:16,875 INFO [CartridgeFinder] found cartridge > --> 'xsd' > 11:18:20,875 INFO [andromda] Input model --> > 'jar:file:C:\apps\jetsgo/doc/jetsgo/itineraryserver/uml/itineraryServer.zuml!/itineraryServer.xmi' > 11:18:31,359 INFO [andromda] namespace for 'java' > cartridge is either > not defined, or has the ignore attribute set to > 'true' --> skipping > processing > 11:18:31,359 INFO [andromda] namespace for 'meta' > cartridge is either > not defined, or has the ignore attribute set to > 'true' --> skipping > processing > 11:18:31,953 INFO [MetafacadeMappings] found > metafacades --> 'meta' > 11:18:32,140 INFO [MetafacadeMappings] found > metafacades --> 'default' > 11:18:32,218 WARN [Namespaces] WARNING! No > 'default' or 'xsd' namespace > found, --> please define a namespace with at least > one of these names, > if you would like to ignore this message, define the > namespace with > ignore set to 'true' > 11:18:32,609 WARN [Namespaces] WARNING! No > 'default' or 'xsd' namespace > found, --> please define a namespace with at least > one of these names, > if you would like to ignore this message, define the > namespace with > ignore set to 'true' > 11:18:32,687 WARN [Namespaces] WARNING! No > 'default' or 'xsd' namespace > found, --> please define a namespace with at least > one of these names, > if you would like to ignore this message, define the > namespace with > ignore set to 'true' > 11:18:32,703 WARN [Namespaces] WARNING! No > 'default' or 'xsd' namespace > found, --> please define a namespace with at least > one of these names, > if you would like to ignore this message, define the > namespace with > ignore set to 'true' > ........... > > Could this be part of the error? Or is this > something else that I am > doing wrong? Otherwise is there another setting in > which I need to > specify which velocity.properties file to use? > > Thanks a lot, > > Francois > > > Chad Brandon wrote: > > >Hi Francois, > > > >Yeah its an undocumented feature at this point..I > need > >to add it to the docs. Anyway its now on a per > >cartridge basis, you'll have to add a velocity > >properties to your cartridge it must be named > >according to the following naming convention: > >META-INF/<plugin name>-velocity.properties > > > >So the a velocity properties file for the ejb > >cartridge would be in > META-INF/ejb-velocity.properties > > > >Chad > > > >--- François_Eric <[EMAIL PROTECTED]> wrote: > > > > > >>Hi all, > >> > >>Still having a few problems merging from 2.x to > 3.0. > >> In version 2.0, I > >>had set my velocity.properties file in the > andromda > >>ant task directly: > >> > >> <andromda basedir="." > >> modelURL="${umlModel}" > >> lastModifiedCheck="true" > >> > >>velocityPropertiesFile="build/velocity.properties"> > >> > >>Since in version 3.0, velocity is not mandatory, > the > >> > >>velocityPropertiesFile attribute is not included > in > >>the andromda ant > >>task. Where and how can I configure my build (of > >>version 3.0) so that > >>andromda is called using my own > velocity.properties > >>file? > >> > >>Thank you, > >> > >>Francois > >> > >> > >> > >> > >> > >> > >------------------------------------------------------- > > > > > >>This SF.Net email is sponsored by The 2004 > >>JavaOne(SM) Conference > >>Learn from the experts at JavaOne(SM), Sun's > >>Worldwide Java Developer > >>Conference, June 28 - July 1 at the Moscone Center > >>in San Francisco, CA > >>REGISTER AND SAVE! http://java.sun.com/javaone/sf > >>Priority Code NWMGYKND > >>_______________________________________________ > >>Andromda-user mailing list > >>[EMAIL PROTECTED] > >> > >> > >> > >https://lists.sourceforge.net/lists/listinfo/andromda-user > > > > > > > > > > > > > > > -- > François Eric, Analyste Programmeur > mailto:[EMAIL PROTECTED] > Téléphone : (514) 278-8232, poste 243 > > Agence Braque > 85, rue Saint-Paul Ouest > Bureau 180 > Montréal (Québec) > H2Y 3V4 CANADA > Télécopieur : (514) 278-3598 > http://www.agencebraque.com > > > ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user