Re: Questions on WOLips use patterns

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Thu Oct 30 2003 - 05:58:39 EST

  • Next message: Clark, Igor: "RE: Questions on WOLips use patterns"

    Hi Igor,
    Am 30.10.2003 um 10:55 schrieb Clark, Igor:

    > Hi folks
    >
    > Firstly, thanks for making & providing WOLips/WOProject - I think it
    > will
    > make developing WO projects on Windows less painful. I have a few
    > questions
    > about using it if you don't mind; I'm coming up against some problems
    > using
    > it that I can't imagine no-one else has seen, but I can't find much
    > documentation about it.
    >
    > 1. When I'm working on a project and build it in the 'dist' directory,
    > and
    > then try to open the EOModel in EOModeler, I get the EOModeler error
    > "Illegal attempt to add model named 'BLAH' more than once". So I tried
    > modifying build.xml so that it builds the application in (e.g.)
    > c:\wobuilds,
    > and when it does that EOModeler will open the EOModel copied there, but
    > still won't open the original one in c:\eclipse\workspace\etc.
    It's a bug in older releases of WOLips. Please refer to the welcome.xml
    to get rid of it. Choose Help->Welcome->WOLips about from the menu.
    To be more detailed. WOLips adds your EOModel twice to the PB.project
    and that causes your EOModel related problems.
    >
    > I've given up trying to work out why EOModeler won't open models even
    > when
    > I've deleted all but one copy and a filesystem search shows only that
    > one
    > copy on the whole system; I think I'll have to work round it. I'm
    > guessing
    > that, as I'm coming up against this problem without doing anything
    > special
    > other than simply creating application and framework projects using
    > WOLips
    > and starting work, other people have probably had similar problems. If
    > so,
    > please could you tell me the best way to work round it? If not, have
    > you any
    > suggestions for finding out what I'm doing wrong or for the best way
    > to work
    > with WOLips in this regard?
    >
    > 2. When working on a framework, is it best to use Incremental build or
    > Ant?
    > It seems to be constantly building and causing the same problem with
    > EOModeler as in 1, and when I switch from one to the other or try to
    > build
    > in paths such as ${wo.localroot}(etc) I sometimes get directories
    > created
    > actually called "${wo.localroot}" etc. I guess these are Ant-related
    > problems, but please do you have any tips / pointers to docs or
    > something to
    > demonstrate the best thing to do here?
    The default build.xml has different targets. To install your frameworks
    once:
    Open the context menu for the build.xml and choose "Run Ant...".
    In the dialog select install instead of build.
    This will install your framework under localroot.

    To set the install to localroot/foo:

    Instead of:
    <!-- basic initializations -->
            <target name="init.install">
                     <tstamp/>
                    <property name="dest.dir" value="${install.dir}"/>
            </target>
    this:
    <!-- basic initializations -->
            <target name="init.install">
                     <tstamp/>
                    <property name="dest.dir" value="${install.dir}/etc"/>
            </target>

    >
    > 3. WOGen: I have the following in a framework's build.xml:
    >
    > <taskdef name="wogen"
    > classname="org.objectstyle.woproject.ant.WOGenerator">
    > <classpath />
    > </taskdef>
    > <target name="makeEOs">
    > <wogen map="BLAH.eomodeld"
    > destDir="src/path/to/package/for/model"/>
    > </target>
    >
    > which gives me the following error:
    >
    > makeEOs:
    > [wogen] Error generating classes.
    > [wogen] BUILD FAILED:
    > file:C:/eclipse/workspace/BLAHFramework/build.xml:17: Error generating
    > classes.
    > Total time: 188 milliseconds
    Most of us prefer EOGenerator to create the src files for a EOModel.
    EOGenerator has much more features and less bugs then WOGenerator.
    Search the list for usage examples
    >
    > EOModeler itself generates the classes from the same model with no
    > problem
    > but I want to use a 'generation gap'.
    >
    > The taskdef and target are copied verbatim from another build.xml (for
    > a WO
    > application) which works fine, only the path/names have been changed.
    > "Error
    > generating classes" doesn't give me much help - should I be looking for
    > problems in the model (which seems OK to me)? Filesystem? Something
    > else?
    >
    > Thanks for taking the time.
    >
    > Bests
    > Igor Clark.
    >

    Ulrich



    This archive was generated by hypermail 2.0.0 : Thu Oct 30 2003 - 05:58:40 EST