Re: WebServerResources url for changed application nane
Re: WebServerResources url for changed application nane
- Subject: Re: WebServerResources url for changed application nane
- From: John Huss <email@hidden>
- Date: Mon, 26 Oct 2009 13:31:06 -0500
So is there no switch to flip to do this? Do I need to just use url rewriting?
John
On Mon, Oct 26, 2009 at 11:51 AM, George Domurot
<email@hidden> wrote:
Oh, right, this is for embedded framework resources - d'oh.
On Oct 26, 2009, at 9:39 AM, John Huss wrote:
This only affects resources in Frameworks though, right? Not resources in my application itself?
John
On Mon, Oct 26, 2009 at 10:26 AM, George Domurot
<email@hidden> wrote:
Hi John. Here's a code snip that I've been using in my Application constructor. Other folks may have a different, or better, solution.
(assume you've, placed a empty file named 'empty' in your resource folder)
if (runningUnderDeployment()){
String resourceURL = resourceManager().pathURLForResourceNamed("empty",null,NSArray.EmptyArray).toString();
int beginIndex = resourceURL.indexOf("/Applications/");
int endIndex = resourceURL.indexOf(".woa/");
if (beginIndex>-1 && endIndex>-1){
// let's make the adjustment
setFrameworksBaseURL("/WebObjects/" + resourceURL.substring(beginIndex+14, endIndex) + ".woa/Frameworks");
}
}
-George
On Oct 26, 2009, at 8:06 AM, John Huss wrote:
How do I change the WebServerResources urls to use a custom application name instead of the project name?
So if the project is named "MyProj" but application is named "MyProductionApp" in JavaMonitor - how do I get WSR urls that look like:
/WebObjects/MyProductionApp.woa/Contents/WebServerResources/border.png
instead of:
/WebObjects/MyProj.woa/Contents/WebServerResources/border.png
Thanks,
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (
email@hidden)
This email sent to
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
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