Re: Building for deployment
Re: Building for deployment
- Subject: Re: Building for deployment
- From: Ramsey Lee Gurley <email@hidden>
- Date: Sun, 13 Dec 2009 17:59:13 -0500
On Dec 13, 2009, at 5:23 PM, Paul Hoadley wrote:
> On 14/12/2009, at 8:30 AM, Mark Wardle wrote:
>
>> I'm pulling my hair out trying to get a WOA that contains all embedded
>> frameworks - including WO54, project wonder and my own.
>
> This should be almost a push-button exercise with the latest tools. I do this all the time.
>
>> Naturally, during development, everything just works from within
>> Eclipse. In particular, I have Project Wonder building from within
>> Eclipse also.
>
> Someone can correct me if I'm wrong, but I'm pretty sure that to get external frameworks embedded, you need to have them fully built in one of the locations WOLips knows about.
This is true
> So even if you have the Wonder source in your Eclipse workspace, you will want to have the built frameworks installed somewhere that your wolips.properties file points to. For example, I have Wonder in /Users/paulh/Library/Frameworks. The build system won't build, install and embed frameworks from source alone.
But it won't find them there unless you tell it (^_^) Right click on your project folder, select "Properties", select WOLips Deployment and you should be able to find something that looks like this:
See down there where it says embed frameworks? (^_^) BTW, project frameworks doesn't work, unless you do some magic of your own with ant.
Anyway make sure you have system, local, and user checked. Then, if you are working with Wonder source in your workspace, you'll need to "install" each one of your frameworks with ant. Only then can you build and get all your frameworks embedded. If you are working with Wonder binaries in your /Library/Frameworks, you can skip that part.
Also, don't forget to replace your mod_webobjects with one of the ones at mdimension. If you don't, you'll get LOTS of "No Instance Available" messages from your deployed app, seemingly at random. It will basically be unusable.
http://webobjects.mdimension.com/wonder/mod_WebObjects/Apache2.2/macosx/
The broken one will be located somewhere like
/System/Library/WebObjects/Adaptors/Apache2.2/
So replace that thing too. Mike and Dave say hudson is the way to go, but I still haven't gotten around to that yet (^_^)
Ramsey
>
>> In fact, I've being going around in circles so much that I've lost
>> track of the different wiki pages I've tried to follow - each
>> suggesting different changes to a build.xml file (or an entirely
>> different build file). I've messed with properties I don't understand,
>> and in fact, think I'm now worse off than when I started. I've even
>> looked at the documentation covering maven and hudson to see whether
>> they would simplify things; I've concluded *not*.
>
> Start again from scratch. Start a new Wonder Application copy over the pristine build.xml.
>
>> Is the information in this wiki page still correct?
>> (http://wiki.objectstyle.org/confluence/display/WOL/Embedding+WOFrameworks)
>
> Only the "side-note" at the top applies to you, and even then the WOFrameworksBaseURL should be irrelevant if your Wonder is recent.
>
>> I've now created a new PW application and copied the build.xml and
>> build.properties back hopefully correcting all my corrections.
>
> It should. Set the "WOLips Deployment" properties as described on that wiki page, make sure the built Wonder frameworks are findable, then run 'build' from build.xml. Your build products will be in dist/.
>
>
> --
> Paul.
>
> w http://logicsquad.net/
> h http://paul.hoadley.name/
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden