Cloud Tools for Eclipse supports running multiple Development App Servers, including having the same App Engine service running in each. So we can't use the source directory for deployment as the different instances will interfere.
Instead each instance of your service is copied into a deployment area found in <workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp<X>/<service-name>
. We should do better to expose that location.
When you first interact with the Def App Server's Datastore emulator, you should see some messages to the console identifying the location of the datastore files.
Nov 29, 2018 12:25:38 PM com.google.appengine.api.datastore.dev.LocalDatastoreService init
INFO: Local Datastore initialized:
Type: High Replication
Storage: /Users/bsd/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/test-imageservice-3079/WEB-INF/appengine-generated/local_db.bin
Nov 29, 2018 12:25:38 PM com.google.appengine.api.datastore.dev.LocalDatastoreService load
INFO: The backing store, /Users/bsd/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/test-imageservice-3079/WEB-INF/appengine-generated/local_db.bin, does not exist. It will be created.
Nov 29, 2018 12:26:08 PM com.google.appengine.api.datastore.dev.LocalDatastoreService$11 run
INFO: Time to persist datastore: 8 ms
You can also tell the Development App Server by editing the server launch configuration and adding --generated_dir
command-line argument like the following: