i must make a small correction on the below.
It only works now if i call the build script directly, and not if i use
the batchfile. Is that a problem?

ernst

> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Namens Ernst Bunders
> Verzonden: vrijdag 12 november 2004 10:02
> Aan: [EMAIL PROTECTED]
> Onderwerp: RE: Uml2mmbase: default field values
> 
> 
> 
> 
> > -----Oorspronkelijk bericht-----
> > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Namens Rudie Ekkelenkamp
> > Verzonden: donderdag 11 november 2004 16:12
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: RE: Uml2mmbase: default field values
> > 
> > 
> > Hi Ernst,
> > 
> > Are you sure you are using the binary distribution:
> > uml2mmbase-1.3.zip. I downloaded a clean version of 
> > uml2mmbase1.3.zip en unzipped it. I applied the patch. Put 
> > your model.zuml in the root. Ran um2mmbase.bat and all went 
> > well... So applying the patch should be enough...
> > 
> > The error that the resource:
> > src/andromda-mmbase/templates/mmbase-search.vsl
> > cannot be found is triggered by the action:
> > 
> >       <java
> > classname="com.finalist.mmbase.wizard.WizardMaker" 
> > fork="true" classpathref="base.classpath">
> >          <arg value="${conf.dir}/mmbase-search.vsl" />
> >          <arg value="${generated.dir}" />
> >       </java>
> > 
> > The mmbase-search.vsl is expected in the conf directory. The
> > error suggests your build file references the src directory. 
> > So the patch was probably not applied correctly.
> 
> ok, i got it. The prolbem was with my ant version. with 1.5.4 
> this dousn't work:
> 
>     <path id="base.classpath">
>        <pathelement path="modules/uml2mmbase-core"/>
>        <fileset dir="${lib.dir}">
>            <include name="*.jar"/>
>        </fileset>
>    </path>
> 
> becouse ant will _not_ look modules/uml2mmbase-core/ first. 
> So in my case the old template was used. Upgrading ant fixed 
> the problem. Maybe you should warn people that want to use 
> the patch about this. Anyway, thanks for all your patience. 
> 
> regards,
> 
> Ernst
> 
> 
> > 
> > cheers,
> > 
> > Rudie.
> > 
> > > -----Oorspronkelijk bericht-----
> > > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > > Ernst Bunders
> > > Verzonden: Thursday, November 11, 2004 2:36 PM
> > > Aan: [EMAIL PROTECTED]
> > > Onderwerp: RE: Uml2mmbase: default field values
> > > 
> > > 
> > > 
> > > 
> > > > -----Oorspronkelijk bericht-----
> > > > Van: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Namens 
> > > > Rudie Ekkelenkamp
> > > > Verzonden: donderdag 11 november 2004 13:46
> > > > Aan: [EMAIL PROTECTED]
> > > > Onderwerp: RE: Uml2mmbase: default field values
> > > > 
> > > > 
> > > > Hi Ernst,
> > > > 
> > > > Just extract the zip file over the binary uml2mmbase1.3 
> > > > installation... The path created will be: 
> > > > modules/uml2mmbase-core/templates
> > > > 
> > > > In the build.xml this path is added before the jars in:
> > > > 
> > > >      <!-- Define our class path -->
> > > >     <path id="base.classpath">
> > > >        <pathelement path="modules/uml2mmbase-core"/>
> > > >        <fileset dir="${lib.dir}">
> > > >            <include name="*.jar"/>
> > > >        </fileset>
> > > >    </path>
> > > > 
> > > > This will make sure the patched templates will be loaded first..
> > > 
> > > hmm, that leaves me with the folling error. I don't have to change
> > > anything else like for instance the batchfile 
> > (uml2mmbase.bat) or so?
> > > 
> > > ernst
> > > 
> > >      [java] 
> org.apache.velocity.exception.ResourceNotFoundException:
> > > Unable to find resource 
> > > 'src/andromda-mmbase/templates/mmbase-search.vs
> > > l'
> > >      [java]     at
> > > org.apache.velocity.runtime.resource.ResourceManager.getResour
> > > ce(Resourc
> > > eManager.java:438)
> > >      [java]     at
> > > org.apache.velocity.runtime.RuntimeInstance.getTemplate(Runtim
> > > eInstance.
> > > java:736)
> > >      [java]     at
> > > org.apache.velocity.runtime.RuntimeInstance.getTemplate(Runtim
> > > eInstance.
> > > java:718)
> > >      [java]     at
> > > org.apache.velocity.runtime.RuntimeSingleton.getTemplate(Runti
> > > meSingleto
> > > n.java:337)
> > >      [java]     at
> > > org.apache.velocity.app.Velocity.getTemplate(Velocity.java:512)
> > >      [java]     at
> > > com.finalist.mmbase.wizard.WizardMaker.createZoek(Unknown Source)
> > >      [java]     at 
> > com.finalist.mmbase.wizard.WizardMaker.main(Unknown
> > > Source)
> > >      [java] Exception in thread "main"
> > >      [java] Java Result: 1
> > >    [delete] Deleting: 
> > > D:\programs\uml2mmbase1.7\generated\wizard-search-config.xml
> > >      [copy] Copying 1 file to 
> > > D:\programs\uml2mmbase1.7\generated\editors
> > >      [copy] Copying 1 file to 
> > > D:\programs\uml2mmbase1.7\generated\editors
> > >      [copy] Copying 9 files to 
> > > D:\programs\uml2mmbase1.7\generated\editors
> > >     [mkdir] Created dir: 
> > > D:\programs\uml2mmbase1.7\generated\WEB-INF\config\builders\ap
> > > plications
> > >      [copy] Copying 37 files to 
> > > D:\programs\uml2mmbase1.7\generated\WEB-INF\config\builders\ap
> > > plications
> > >      [copy] Copying 5 files to 
> > > D:\programs\uml2mmbase1.7\generated\WEB-INF\config\builders\core
> > >      [copy] Copying 
> > > D:\programs\uml2mmbase1.7\web\basic-builders\1.7\posrel.xml to 
> > > D:\programs\uml2mmbase1.7\generated\WEB-INF\config\builde
> > > rs\core\posrel.xml
> > >      [copy] Copying 
> > > D:\programs\uml2mmbase1.7\web\basic-builders\1.7\icaches.xml to 
> > > D:\programs\uml2mmbase1.7\generated\WEB-INF\config\build
> > > ers\core\icaches.xml
> > >      [copy] Copying 
> > > D:\programs\uml2mmbase1.7\web\basic-builders\1.7\images.xml to 
> > > D:\programs\uml2mmbase1.7\generated\WEB-INF\config\builde
> > > rs\core\images.xml
> > >      [copy] Copying 
> > > 
> D:\programs\uml2mmbase1.7\web\basic-builders\1.7\attachments.xml to 
> > > D:\programs\uml2mmbase1.7\generated\WEB-INF\config\b
> > > uilders\core\attachments.xml
> > >      [copy] Copying 
> > > D:\programs\uml2mmbase1.7\web\basic-builders\1.7\urls.xml to 
> > > D:\programs\uml2mmbase1.7\generated\WEB-INF\config\builders
> > > \core\urls.xml
> > > 
> > > mmbase.poseidon2:
> > > 
> > > > 
> > > > Hope this helps,
> > > > 
> > > > Rudie.
> > > > 
> > > > > -----Oorspronkelijk bericht-----
> > > > > Van: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > > > > Ernst Bunders
> > > > > Verzonden: Thursday, November 11, 2004 1:42 PM
> > > > > Aan: [EMAIL PROTECTED]
> > > > > Onderwerp: RE: Uml2mmbase: default field values
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > > -----Oorspronkelijk bericht-----
> > > > > > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > > > > Namens Rudie Ekkelenkamp
> > > > > > Verzonden: donderdag 11 november 2004 12:48
> > > > > > Aan: [EMAIL PROTECTED]
> > > > > > Onderwerp: RE: Uml2mmbase: default field values
> > > > > > 
> > > > > > 
> > > > > > Hi Ernst,
> > > > > > 
> > > > > > I looked into your model and it is just fine (nice model
> > > > > > though!). I'm afraid you ran into a nasty bug. I 
> sent a patch 
> > > > > > for this bug as an attachment. I also uploaded the patch to 
> > > > > > mmapps. The bug was in the code that sorted the 
> > modelelements.
> > > > > > This patch no longer sorts the builders, but at least
> > generates
> > > > > > them.
> > > > > > 
> > > > > > The patch actually shows you how you can easily adjust the
> > > > > > templates if you need to change them. In the 
> > > > > > modules/uml2mmbase-core/templates directory you can put all 
> > > > > > templates that you need to change (the can be 
> > extracted from the
> > > > > > uml2mmbase-core.jar file).
> > > > > 
> > > > > thanks for the help, but i'm not quite there yet. 
> first, i had 
> > > > > to make a directorystructure like 
> > > > > uml2mmbase1.7\src\andromda-mmbase\templates where i 
> had to put 
> > > > > mmbase-search.vsl to get rid of an error. but i don't
> > > think the app
> > > > > uses the new version of mmbase-application.vsl
> > > > > (the behavour is still the same). i did some playing
> > around, but
> > > > > probalby don't get the path right. some things i tried:
> > > > > uml2mmbase1.7\src\andromda-mmbase\modules\uml2mmbase-core\temp
> > > > > lates\mmba
> > > > > se-application.vsl
> > > > > uml2mmbase1.7\src\modules\uml2mmbase-core\templates\mmbase-app
> > > > > lication.v
> > > > > sl 
> > > > > uml2mmbase1.7\modules\uml2mmbase-core\templates\mmbase-applica
> > > > > tion.vsl 
> > > > > 
> > > > > can you tell me what i'm doing wrong?
> > > > > 
> > > > > thanks,
> > > > > 
> > > > > Ernst
> > > > > 
> > > > > 
> > > > > > 
> > > > > > Hope this helps,
> > > > > > 
> > > > > > Cheers.
> > > > > > 
> > > > > > Rudie.
> > > > > > 
> > > > > > > -----Oorspronkelijk bericht-----
> > > > > > > Van: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]
> > > > > > > Ernst Bunders
> > > > > > > Verzonden: Thursday, November 11, 2004 10:27 AM
> > > > > > > Aan: [EMAIL PROTECTED]
> > > > > > > Onderwerp: RE: Uml2mmbase: default field values
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > > -----Oorspronkelijk bericht-----
> > > > > > > > Van: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > > > > > > > Namens Rudie Ekkelenkamp
> > > > > > > > Verzonden: woensdag 10 november 2004 12:55
> > > > > > > > Aan: [EMAIL PROTECTED]
> > > > > > > > Onderwerp: RE: Uml2mmbase: default field values
> > > > > > > > 
> > > > > > > > 
> > > > > > > > Hi Ernst,
> > > > > > > > 
> > > > > > > > You can use as many diagrams as you like. It's only
> > > the model
> > > > > > > > that counts.
> > > > > > > 
> > > > > > > That's what I thought.
> > > > > > > 
> > > > > > > >But all model elements will be used, so if that
> > > > > > > > is not your intention, that might be the cause of the
> > > > > > > >problem...
> > > > > > > 
> > > > > > > Well, the problem is that for all the builders in my
> > > > > model the app
> > > > > > > creates builderfiles and wizards. Allso in
> > > > > APPLICATION.xml both the
> > > > > > > neededreldeflist and allowedrelationlist are
> > > complete. Only the
> > > > > > > neededbuilderlist is missing about half the builders.
> > > > > There are no
> > > > > > > error messages either.
> > > > > > > 
> > > > > > > > Are you using mmbase 1.6 or 1.7. The default is 
> 1.7 now, 
> > > > > > > > so that might be a problem?
> > > > > > > 
> > > > > > > Nop. I'm using 1.7.
> > > > > > > 
> > > > > > > So. Is there anything you can think about? Is it possible
> > > > > > that due to
> > > > > > > some error in the xmi file the creation of the
> > > > > neederbuilderlist is
> > > > > > > running into a problem? Or is it possible to get more
> > > > > > verbose logging
> > > > > > > from uml2mmbase? I must say I'm a bit anxious about
> > this.. For
> > > > > > > completeness I include the zuml file.
> > > > > > > 
> > > > > > > Regards,
> > > > > > > 
> > > > > > > Ernst
> > > > > > > 
> > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > cheers,
> > > > > > > > 
> > > > > > > > Rudie.
> > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > > -----Oorspronkelijk bericht-----
> > > > > > > > > Van: [EMAIL PROTECTED]
> > > > > > [mailto:[EMAIL PROTECTED]
> > > > > > > > > Ernst Bunders
> > > > > > > > > Verzonden: Wednesday, November 10, 2004 12:45 PM
> > > > > > > > > Aan: [EMAIL PROTECTED]
> > > > > > > > > Onderwerp: RE: Uml2mmbase: default field values
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > > > -----Oorspronkelijk bericht-----
> > > > > > > > > > Van: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]
> > > > > > > > > > Namens Rudie Ekkelenkamp
> > > > > > > > > > Verzonden: woensdag 10 november 2004 12:09
> > > > > > > > > > Aan: [EMAIL PROTECTED]
> > > > > > > > > > Onderwerp: RE: Uml2mmbase: default field values
> > > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > > Hi Ernst,
> > > > > > > > > > 
> > > > > > > > > > I just created a uml2mmbase category, so you can
> > > > > add the RFE
> > > > > > > > > > there. Actually, there is also a UML2MMbase forum. I
> > > > > > think that
> > > > > > > > > > would be the preferred way to discuss UML2MMbase
> > > > > > features. The
> > > > > > > > > > mmbase users mailing list is probably not the
> > > > best place to
> > > > > > > > > > discuss this?
> > > > > > > > > > 
> > > > > > > > > > Rudie.
> > > > > > > > > 
> > > > > > > > > On the other hand, you need to log in to post to the
> > > > > > forum and it
> > > > > > > > > is not exactly thriving.
> > > > > > > > > So I will risk obusing this list some more.
> > > > > > > > > It seems I have a problem. I have made a nice 
> model with
> > > > > > > mmbase2uml.
> > > > > > > > > Now I am making some changes and try to 
> convert it to an 
> > > > > > > > > mmbase app. All goes well except not alle builders
> > > > are listed
> > > > > > > > > in the neededbuilderlist.
> > > > > > > > > I do user a number of diagrams, assuming that
> > that is ok.
> > > > > > > > Am I right?
> > > > > > > > > Are there other tips you could give me to trouble
> > > > > > shoot? Regards,
> > > > > > > > > Ernst
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > > > -----Oorspronkelijk bericht-----
> > > > > > > > > > > Van: [EMAIL PROTECTED]
> > > > > > > > [mailto:[EMAIL PROTECTED]
> > > > > > > > > > > Ernst Bunders
> > > > > > > > > > > Verzonden: Wednesday, November 10, 2004 11:55 AM
> > > > > > > > > > > Aan: [EMAIL PROTECTED]
> > > > > > > > > > > Onderwerp: RE: Uml2mmbase: default field values
> > > > > > > > > > > 
> > > > > > > > > > > 
> > > > > > > > > > > Wouldn't it be nice to add some categories
> > to the RFE
> > > > > > > > > > section for the
> > > > > > > > > > > project? Like for every app in the project.
> > > Otherwise it
> > > > > > > > > > might get a
> > > > > > > > > > > bit messy
> > > > > > > > > > > 
> > > > > > > > > > > ernst
> > > > > > > > > > > 
> > > > > > > > > > > > -----Oorspronkelijk bericht-----
> > > > > > > > > > > > Van: [EMAIL PROTECTED]
> > > > > > [mailto:[EMAIL PROTECTED]
> > > > > > > > > > > > Namens Rudie Ekkelenkamp
> > > > > > > > > > > > Verzonden: woensdag 10 november 2004 11:28
> > > > > > > > > > > > Aan: [EMAIL PROTECTED]
> > > > > > > > > > > > Onderwerp: RE: Uml2mmbase: default field values
> > > > > > > > > > > > 
> > > > > > > > > > > > 
> > > > > > > > > > > > Hi Ernst,
> > > > > > > > > > > > 
> > > > > > > > > > > > It is currently not possible in UML2MMBase
> > > to specify
> > > > > > > > a default
> > > > > > > > > > > > value. But in UML you can specify an 
> initial value
> > > > > > > > which could
> > > > > > > > > > > > be used to model de default value. So if it is
> > > > > > > possible with
> > > > > > > > > > > > edit wizards, it can be possible with 
> UML2MMBase.
> > > > > > > > Please add a
> > > > > > > > > > > > RFE at mmapps.sourceforge.net for this feature.
> > > > > > > > > > > > 
> > > > > > > > > > > > FYI, I'm currently working on supporting the
> > > > > > > > MagicDraw UML tool
> > > > > > > > > > > > (which in my opinion is even better 
> than Poseidon
> > > > > > UML), for
> > > > > > > > > > > > which also a community edition is 
> available.. The
> > > > > > > > next release
> > > > > > > > > > > > of UML2MMBase will have this support.
> > > > > > > > > > > > 
> > > > > > > > > > > > cheers,
> > > > > > > > > > > > 
> > > > > > > > > > > > Rudie Ekkelenkamp.
> > > > > > > > > > > > 
> > > > > > > > > > > > > -----Oorspronkelijk bericht-----
> > > > > > > > > > > > > Van: [EMAIL PROTECTED]
> > > > > > > > > > [mailto:[EMAIL PROTECTED]
> > > > > > > > > > > > > Michiel Meeuwissen
> > > > > > > > > > > > > Verzonden: Wednesday, November 10, 
> 2004 11:09 AM
> > > > > > > > > > > > > Aan: [EMAIL PROTECTED]
> > > > > > > > > > > > > Onderwerp: Re: Uml2mmbase: default 
> field values
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > Kees Jongenburger wrote:
> > > > > > > > > > > > > > On Wed, 10 Nov 2004 10:35:47 +0100,
> > > Ernst Bunders
> > > > > > > > > > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > > > > > > > > > > Is it possible to set default values for
> > > > > > > fields? I can't
> > > > > > > > > > > > > find it in the
> > > > > > > > > > > > > > > document
> > > > > > > > > > > > > > This is not possible in mmbase , unless you
> > > > > create you
> > > > > > > > > > > > own builders
> > > > > > > > > > > > >
> > > > > > > > > > > > > Indeed, but he referred to UML2MMBase in
> > > > which indeed
> > > > > > > > > > it would be
> > > > > > > > > > > > > imagineable, because it also generates
> > > > > > > editwizards, IIRC. In
> > > > > > > > > > > > > Editwizard XML's you can specify defaults.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Michie
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > --
> > > > > > > > > > > > > Michiel Meeuwissen                  mihxil'
> > > > > > > > > > > > > Mediacentrum 140 H'sum                [] ()
> > > > > > > > > > > > > +31 (0)35 6772979         nl_NL eo_XX en_US
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > 
> > > > > > > > > > > > 
> > > > > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > 
> > > > 
> > 
> 
> 

Reply via email to