You could create a symbolic link on the web server. i.e. /resources -
> /WebObjects/MyApp.woa/Contents/WebServerResources. Then if the
application name changes just change the symbolic link.
Or you could create a javascript variable i.e. var MY_APP_PREFIX = '/
WebObjects/MyApp.woa/Contents/WebServerResources'; Then if the
application name changes just change the value of this variable.
HTH,
Johnny
On Oct 26, 2009, at 9:12 AM, John Huss wrote:
Yeah, the urls for web server resources don't have the different
application name. And that is what I've always wanted thus far.
But now I'm doing some tightly coupled javascript front-end stuff
where I want the web resources to be application-name independent.
John
On Mon, Oct 26, 2009 at 1:50 PM, George Domurot <[email protected]
> wrote:
When we deploy our app under different names, the resources always
get linked up. Is something not working when you deploy?
-G
On Oct 26, 2009, at 11:31 AM, John Huss wrote:
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/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/jlmiller%40kahalawai.com
This email sent to [email protected]
Johnny Miller
Kahalawai Media Corp
w: www.kahalawai.com
e: [email protected]
p: 808.661.7962
_______________________________________________
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]