Google App Engine 1.6.3 のシステムプロパティ
GAE でアプリケーションを登録したので環境調査も兼ねて取得したすっぴん状態のシステムプロパティを載せておきます。値は Java のリテラル表記です。
Name | Value |
---|---|
com.google.appengine.application.id | "appid" |
com.google.appengine.application.version | "1.357195764071108954" |
com.google.appengine.runtime.environment | "Production" |
com.google.appengine.runtime.version | "Google App Engine/1.6.3" |
file.encoding | "ANSI_X3.4-1968" |
file.separator | "/" |
java.class.version | "50.0" |
java.specification.name | "Java Platform API Specification" |
java.specification.vendor | "Sun Microsystems Inc." |
java.specification.version | "1.6" |
java.vendor | "Google Inc." |
java.vendor.url | "http://wiki.corp.google.com/twiki/bin/view/Main/JavaPlatform" |
java.version | "1.6.0" |
java.vm.name | "OpenJDK Client VM" |
java.vm.specification.name | "Java Virtual Machine Specification" |
java.vm.specification.vendor | "Sun Microsystems Inc." |
java.vm.specification.version | "1.0" |
java.vm.vendor | "Sun Microsystems Inc." |
java.vm.version | "1.6.0" |
line.separator | "\n" |
os.name | "Linux" |
path.separator | ":" |
user.dir | "/base/data/home/apps/s~appid/1.357195764071108954" |
標準のシステムプロパティに比べてかなり控えめですが、OpenJDK 1.6.0 (多分 GEA カスタム版) を使用していてアーキテクチャ不明の Linux を使用していることが分かります。
com.google.appengine.runtime.environment は Eclipse などのローカル環境では "Development" となるので、本番環境と開発環境で動作を切り替える場合に使用できます。
なおアプリケーションでシステムプロパティが必要な場合は WEB-INF/appengine-web.xml で追加することができます。