Re: Lauching WOunit tests with project dependencies
Re: Lauching WOunit tests with project dependencies
- Subject: Re: Lauching WOunit tests with project dependencies
- From: Alexis Tual <email@hidden>
- Date: Fri, 15 Mar 2013 20:06:22 +0100
Yes it was that ERFoundation thing (containing a custom NSBundle.class).
Also a few things we discovered along the way :
- ERFoundation and ERWebObjects are needed first in the buildpath for your fwk and apps. That way bundleless builds work (for us) and that's a clear win when you have dozens of projects opened...
- eclipse Juno 4.2 SR2 + wolips validate components wrongly (senseless errors) on some projects. Juno 4.2 SR1 doesn't have these problems (same workspace) after uninstalling egit (maybe the wolips incremental builder is messed up by egit when cleaning).
Hope that helps someone in the future,
Alex
2013/3/11 Alexis Tual
<email@hidden>
Hi Chuck,
thanks for you answer, I've tried it with no success (also I think WOUnit sets it to true).
However back home, I've just noticed this specific project has no dependency on ERFoundation, so I've added it and it *seems* to work. I'll try tomorrow at work to declare official success :)
Alex
2013/3/11 Chuck Hill
<email@hidden>
Hi Alexis,
Are you launching the tests with NSProjectBundleEnabled=true? If not, try that.
Chuck
On 2013-03-11, at 10:20 AM, Alexis Tual wrote:
> Hi all (and Henrique !)
>
> I have a project A depending on project B which is opened in WOLips. My workspace has Generates bundles = true
> A has an eomodeld depending on another one in project B.
> My WOUnit test in project A loads successfully the eomodel but can't resolve a relationship to a project B :
>
> java.lang.IllegalArgumentException: EORelationship(): cannot find entity named FwkGspot_ImplantationGeo for destination of relationship fwkGspot_ImplantationGeo in entity Sco_ImplantationsGeoComposant.
>
> When I print the bundles, project B doesn't appear... If I put projectB/build/projectB.framework in the classpath of the test, it works.
> Is there a better way ?
>
> I can't use bundless builds because it doesn't play well with my other jar dependencies... (Yes I have both dependencies : jars and wolips :))
>
> Thanks for your help
>
>
>
> _______________________________________________
> 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
--
Chuck Hill
Executive Managing Partner, VP Development and Technical Services
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/gvc/practical_webobjects
Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
_______________________________________________
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