Hello.
I'm new to GWT development and I want to detect if the GWT application
is in debug mode/session (i'm using Eclipse plugin), i have to do this
because in Debug mode many POST and GET have different locations
(cross site using a proxy in apache) than Release mode.
Actually I use a constant property in my project but it's easy to
forget and if another developer compile my GWT application it WILL be
forgotten...
Here is an example of my code to explain why i need to detect this :
String GetUrlPost(String Url)
{
String res = GWT.getModuleBaseURL()+Url;
if (constants.modeDebug())
res = constants.adresseServeurPost() + "/proxyredir/" +
Url;
res = URL.encode(res);
return(res);
}
Where adresseServeurPost is the IP of apache.
I want to do a thing like :
if (isDebugMode())
...
else
...
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.