Java – use App Engine to customize the data storage location on the local computer

I am developing App Engine Application in Android studio and testing it on the local computer (using local data store) It is a Java - based application The local data store is cleared each time the server is rerun I've found several solutions for Python developers, but it doesn't seem to have a Java answer

Android studio only allows changes:

>War Path > VM args > server address > server port

I have tried to use virtual machine parameters, but these are for Java VM rather than application server Is there a way to maintain local data storage between server restarts? It would be perfect if I could run this configuration directly from Android studio

Solution

The local data store is cleared because it is in the war directory of the application decomposition by default (it is completely deleted in each build)

You can actually just add the app parameter to the app engine run configuration to find the data store in another location without having to manually run the dev server from the terminal

-Ddatastore.backing_store="/path/to/datastore/file/location/local_db.bin"

(solution: https://code.google.com/p/android/issues/detail?id=68225 )

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>