Re: Maven and Wonder
Re: Maven and Wonder
- Subject: Re: Maven and Wonder
- From: Hugi Thordarson <email@hidden>
- Date: Tue, 05 Feb 2019 18:23:50 +0000
Hi Markus.
Regarding (1), you probably need to include JarResourceRequestHandler
((https://gist.github.com/hprange/1068523) in your project and activate it in
your Application constructor:
if (isDirectConnectEnabled()) {
registerRequestHandler(new JarResourceRequestHandler(), "wr");
}
And as you mention, this should probably have been included in Wonder some way
a while backā¦
2) I don't use EOF anymore (using Cayenne) so this is not my area of expertise,
but I'm guessing you need to check out some of the methods in ERXExtensions
for bootstraping the environment for testing. Probably initEOF or initApp,
depending on your requirements.
- hugi
> On 5 Feb 2019, at 15:53, Markus Stoll, junidas GmbH <email@hidden>
> wrote:
>
> Hi,
>
> finally I started mavenizing my Wonder projects (and I am very grateful for
> all the work done here).
> I observed few things that required patching Wonder and I wonder whether I
> missed something.
>
> 1. When I start one of the example application (from maven build) directly,
> it creates URLs for the ERXStaticResourceRequestHandler that have a file
> reference like this:
>
> jar:file:///<path to jar>!/path/to/resource/in/jar
>
> and ERXStaticResourceRequestHandler was not handling this correctly. I
> created a patch for this, but I am puzzled why this might be needed as I
> expected to be one of the last ones to go Maven.
>
>
> 2. wounit tests executed from surefireplugin in maven.
>
> The default way the test is setup (to execute the tests from test-classes),
> NSBundle won't find its resources, so MockEditingContext wont find the
> EOModels. I created a patch to enable NSBundle to handle this setup. But I
> guess, I am missing something here, too.
> But I could't find anything about how to setup surefire / junit / wounit
> tests from Maven for Wonder / WebObjects.
>
> Maybe someone can give me some hints. If I did not miss anything, I will be
> glad to supply my patches to Wonder, but still I fear they might not be
> needed at all...
>
> Regards, Markus
>
>
> _______________________________________________
> 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
_______________________________________________
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
References: | |
| >Maven and Wonder (From: "Markus Stoll, junidas GmbH" <email@hidden>) |