views:

65

answers:

1

What is the base path of setBackingStoreLocation?

I've setNoStorage to false.
I see datastore-indexes-auto.xml being created in \WEB-INF\appengine-generated(not \war\WEB-INF\appengine-generated).

I've tried providing an empty string, null, not setting it at all, and an absolute path, all with both a file name specified as well as with just a path specified.

+1  A: 

It's relative to the project root. I just wasn't attempting to persist any objects.

The following will create the file in the root of the project.

LocalDatastoreServiceTestConfig dsConfig = new LocalDatastoreServiceTestConfig();
dsConfig.setBackingStoreLocation("local_db.bin");

The following with create the file in C:

LocalDatastoreServiceTestConfig dsConfig = new LocalDatastoreServiceTestConfig();
dsConfig.setBackingStoreLocation("C:\\local_db.bin");
antony.trupe