You can use GWT.isProdMode() /dmc
On Tue, Feb 15, 2011 at 5:21 AM, Jan <[email protected]> wrote: > Hi, > > I have some code on the server side of my application which should > only be executed locally in development mode. > Therefore I would like to have an isDeployed()-function to control > whether or not it should be executed. > Does anybody know of such a function or is there even a way to remove > such code parts like it is the case for assert? > > Thank you very much > Jan > > -- > 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. > > -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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.
