Hello Tom,

Thank you for your question regarding “SystemProperty.environment.value()” 
not being available for Java 11. Since upgrading to java 11, the value 
output of this code is always just null.

For the community, this code is used to know if you are running the code 
locally or out in the cloud. You may see the details here 
<https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/utils/SystemProperty.Environment.Value>
.

You would like to know the equivalent code for App Engine 11 because there 
doesn't seem to be any documentation for this feature at all.

I was able to verify your claim in public documentation. The information I 
researched is very old and does not appear to be included in the Java 11 
Runtime as you need it.

So this is an opportunity to request this functionality but to add value to 
this feature request, how would you implement it?

We may use your ideas to get this done but please note that there is no 
guarantee that it will be implemented but we will take a look and consider 
your request seriously.


On Wednesday, April 7, 2021 at 10:45:20 AM UTC-4 [email protected] wrote:

> Hi all:
>
> I am in the process of upgrading all our App Engine 8 services to 11, but 
> I am running into an issue. We use the `SystemProperty.environment.value()` 
> to determine if we are running locally on one of our developer machines or 
> out in the cloud, however since upgrading to java 11, the value is always 
> just null.
>
> What is the equivalent code for App Engine 11? There doesn't seem to be 
> any documentation for this at all.
>
> Thanks,
> Tom Harris
> Tech Lead
> TerraTrue, Inc.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3a358b5b-dbef-4f53-9685-f94ec2cb9033n%40googlegroups.com.

Reply via email to