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 protected]> 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 protected]> 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 protected])
>> Help/Unsubscribe/Update your Subscription:
>>
>> http://lists.apple.com/mailman/options/webobjects-dev/george%40boxofficetickets.com
>>
>> This email sent to [email protected]
>>
>>
>>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
>
> http://lists.apple.com/mailman/options/webobjects-dev/george%40boxofficetickets.com
>
> This email sent to [email protected]
>
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to