As a workaround, I added the following to jetty.xml:

<Call class="java.lang.System" name="setProperty">
    <Arg>env.local</Arg>
    <Arg>true</Arg>
</Call>



Then from the code:


public static boolean isLocalEnvironment()
{
   String result = System.getProperty("env.local");

   return "true".equals(result);

}



On Wednesday, December 14, 2016 at 7:29:07 PM UTC+3, Fouad Almalki wrote:
>
> For example, Is there any system/environment variable that is set 
> automatically when deploying java flex app on Google Cloud?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b167d266-c8a7-4466-8686-03036b772876%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to