Re: WOFrameworksBaseURL
Re: WOFrameworksBaseURL
- Subject: Re: WOFrameworksBaseURL
- From: Ramsey Gurley <email@hidden>
- Date: Fri, 04 Oct 2013 09:58:53 -0700
The javadocs seem to indicate, WOApplicationBaseURL only applies to what comes before the application name. In my case, the application name is what separates the two instances. Instead of
1) /WebObjects/AppName.woa/Frameworks
I want something like
2) /WebObjects/AppNameBeta.woa/Frameworks
After removing the override from the build.xml, I found that the WOFramworksBaseURL is set correctly. However, I've just tested, and using
<wo:ERXJavaScript filename = "SafariUploadHack.js" framework = "Ajax" />
Works correctly, and gives me path 2 above.
<wo:ERXJavaScript filename = "js/main.js"/>
does not and gives me path 1. It seems the problem is only occurring when the resource is in the application bundle. Framework bundle resources work as expected.
On Oct 4, 2013, at 12:58 AM, Alexis Tual wrote:
> Hi Ramsey,
>
> have you also set WOApplicationBaseURL ?
>
> Hope it helps,
>
> Alex
>
> 2013/10/4 Ramsey Gurley <email@hidden>
> WO is me.
>
> I'm trying to deploy a beta version on our live server for limited user testing. It is built off a separate branch with lots of new web server resources. Naturally, I figure I'll just set up the beta app the same as my live app, just under a different name. Then all I should need to do is update my WOFrameworksBaseURL and done.
>
> In theory. I tried adding -WOFrameworksBaseURL to the additional args in Java Monitor. That didn't work. I could see something was adding a second, incorrect version of WOFrameworksBaseURL to the end of sun.java.command in the logs.
>
> After much searching, I found
>
> frameworksBaseURL="/WebObjects/${build.app.name}.woa/Frameworks"
>
> in my build.xml. Who added that? Oh, it's in the default build.xml of every new wonder project.
>
> So I removed that, but my override didn't work. The duplicate override wasn't appearing in sun.java.comand, but it just didn't work. It defaulted to /WebObjects/Frameworks or something instead of using what I put into Monitor.
>
> So I added WOFrameworksBaseURL to the properties file in the app and finally, it works. Sorta.
>
> Now, anything added with ERXResponseRewriter has the correct path, but somehow, paths generated ERXStyleSheet, ERXJavaScript, and ERXFavIcon are still wrong. They use /WebObjects/AppName.woa/Frameworks instead of /WebObjects/AppNameBeta.woa/Frameworks.
>
> Does this sound familiar to anyone?
>
> Ramsey
> _______________________________________________
> 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