• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebServerResources url for changed application nane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 11:39:49 -0500

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)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WebServerResources url for changed application nane
      • From: George Domurot <email@hidden>
References: 
 >WebServerResources url for changed application nane (From: John Huss <email@hidden>)
 >Re: WebServerResources url for changed application nane (From: George Domurot <email@hidden>)

  • Prev by Date: Re: Webobjects-dev Digest, Vol 6, Issue 949
  • Next by Date: Re: WebServerResources url for changed application nane
  • Previous by thread: Re: WebServerResources url for changed application nane
  • Next by thread: Re: WebServerResources url for changed application nane
  • Index(es):
    • Date
    • Thread