Re: Project-relative frameworks

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Mon May 12 2003 - 04:08:04 EDT

  • Next message: Pierre Bernard: "WOLips build styles"

    Hi Jonathan,

    everything I've said before the build.xml stuff is correct.

    To include all your frameworks in the workspace, add a frameworks
    section like this. The exclude of .woa is important. Without it the
    framework copied into the app gets recognized as another framework and
    will be embeded again and again..

    <frameworks root=".." embed="true">
                                   <include name="**/*.framework"/>
                                   <exclude name="**/*.woa/**"/>
                           </frameworks>
                            
    To include only the Foo framework:
                            <frameworks root=".." embed="true">
                                   <include name="**/Foo.framework"/>
                           </frameworks>
                            
    The first build takes a little bit longer. But after that it's
    screaming fast. To make a clean build of an application or framework
    just delete it.

    Ulrich
    Am Freitag, 09.05.03 um 23:18 Uhr schrieb Ulrich Köster:

    > Hi Jonathan,
    >
    > the last step may fail. I'll figure it out tomorrow, when I'll get
    > back to my machine. Please wait until then.
    >
    > Ulrich
    >
    > Am Freitag, 09.05.03, um 21:47 Uhr (Europe/Berlin) schrieb Ulrich
    > Köster:
    >
    >> Hi Jonathan,
    >>
    >> let's assume there is a framework 'Foo' and an application
    >> 'HelloWOrld'.
    >>
    >> Right click on HelloWorld and select 'properties'. Choose
    >> 'JavaBuildPath'. In the projects tab select HelloWorld. In the
    >> libraries tab click on 'add jar' and choose the jar from 'Foo'.
    >> To test these steps please launch your woapp as an 'WOApplication'.
    >> Take a look in the docs if need help to launch the application.
    >>
    >> If there's an exception when you launch the application or the rapid
    >> turnaround mode does not work, double check the first two steps.
    >>
    >> Open the build.xml from 'HelloWOrld' and change the wolocalroot
    >> frameworks include tag:
    >>
    >>
    >> <frameworks root="${wo.wolocalroot}">
    >> .
    >> .
    >> .
    >> </frameworks>
    >> <frameworks root="${wo.wolocalroot}" embed="true">
    >> .
    >> .
    >> .
    >> </frameworks>
    >>
    >> All you need to change is the 'embed="true"' .
    >>
    >> From the project menu choose rebuild all.
    >>
    >> Take a look in the 'HelloWOrld.woa' the Classpath.txt should be
    >> correct and the framework should be embedded in the application.
    >>
    >> WOLips (Eclipse) builds whenever you save something. For the
    >> development of woapps and frameworks there is no need to run the ant
    >> script every time. To enable/ disable the ant runner click on the +
    >> or - in the WOLips perspective.
    >>
    >> When it's time for the deployment enable the ant runner and select
    >> Projects->Rebuild All.
    >>
    >>
    >> Ulrich
    >>
    >> Am Freitag, 09.05.03, um 20:50 Uhr (Europe/Berlin) schrieb Jonathan
    >> 'Wolf' Rentzsch:
    >>
    >>> Greetings all,
    >>>
    >>> I use frameworks extensively for my WO development. The thing is, I
    >>> don't
    >>> use them like other folks use them. I never "install" them into
    >>> /Library/Frameworks. When I make use of a framework in a WOApp, I
    >>> use a
    >>> project-relative reference. When it comes time to build the WOApp, I
    >>> use
    >>> woaFrameworkMerger to copy the referenced frameworks into my .woa and
    >>> rewrite the ClassPaths.
    >>>
    >>> How do I go about doing this in Eclipse+WOLips? I only see
    >>> WOLips->Add
    >>> System Framework and WOLips->Add Local Framework.
    >>>
    >>> .......................................................
    >>> Jonathan 'Wolf' Rentzsch http://rentzsch.com
    >>> Red Shed Software http://redshed.net (847) 584-7465
    >>> PGP: b2af 1a09 f881 ebde c9d6 c4d2 c04f a3c0 3ec5 d5f2
    >>>
    >>> "better" necessarily means "different"
    >>>



    This archive was generated by hypermail 2.0.0 : Mon May 12 2003 - 04:07:45 EDT