Do you know there is a concept of “bundless builds” ? It works with ANT but not 
with Maven. 

If you try to use bundless builds with Maven you’ll get runtime errors when 
launching via Eclipse related to “null” for "NSProperties._mainBundleName()”

I've been using Eclipse bundless builds for a very long time. It's an option in 
Eclipse WOLips (I'll tell you where in a moment). I think once upon a time, in 
Ant/Eclipse, it used to build .woa bundles and launch from that. It was ok but 
sometimes it would get sort of stuck and you'd have to manually delete the .woa 
to get a true build and it was a little slow to package up the .woa before 
launch. Other than those niggling issues, it was fine. But those issues were 
enough to bother some people in the WO community to question why we even needed 
a .woa bundle and if we could launch without it. I don't even know how that 
works but it was an option to go with a bundless build and that seemed to be 
more reliable, faster to launch, etc. 

Turns out, now with Maven, you cannot use bundless builds! If you do, you won't 
see any errors/problems (no red) in Eclipse but you'll get runtime errors when 
you launch. Most notable is a null mainBundleName. 

It now seems so obvious, I don't have a bundle name because I don't have a 
bundle (you can add "dumb ass" if you want). But I didn't need one for ANT and 
this was not at all obvious to me. It's one of those settings you make in your 
Eclipse workspace and forget about it. 

In Eclipse, if you go to "Preferences" in the top menu bar (I think it is OS 
specific, maybe under "Help" or "Eclipse") you get preferences for he entire 
workspace:
  1. There you can open the triangle for "WOLips"
  2. Now choose "Build" and you'll see many checkboxes. 
  3. Maven requires you to have this box checked "Generate bundles"
  4. Restart Eclipse then clean the workspace, etc. 

When you do this, now inside the "target" folder where Maven puts compiled java 
class files, it now makes a .woa bundle and obviously uses that during launch 
from inside Eclipse. 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to