{"pull_request":{"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/6f4f987119e2cf2e4e0f9200f3d9f83a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6f4f987119e2cf2e4e0f9200f3d9f83a","url":"https://api.github.com/users/malamut2","login":"malamut2","id":1080242},"deletions":0,"merged_by":null,"updated_at":"2011-11-04T08:49:42Z","commits":2,"base":{"ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/624672c2cdbb441e2a91250910feb772?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"624672c2cdbb441e2a91250910feb772","url":"https://api.github.com/users/BaseXdb","login":"BaseXdb","id":621314},"repo":{"name":"basex","fork":false,"master_branch":null,"pushed_at":"2011-11-04T04:56:39Z","clone_url":"https://github.com/BaseXdb/basex.git","updated_at":"2011-11-04T04:56:39Z","open_issues":20,"homepage":"http://basex.org","forks":23,"private":false,"svn_url":"https://svn.github.com/BaseXdb/basex","language":"Java","url":"https://api.github.com/repos/BaseXdb/basex","owner":{"avatar_url":"https://secure.gravatar.com/avatar/624672c2cdbb441e2a91250910feb772?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"624672c2cdbb441e2a91250910feb772","url":"https://api.github.com/users/BaseXdb","login":"BaseXdb","id":621314},"html_url":"https://github.com/BaseXdb/basex","description":"BaseX Main Repository.","size":1024,"id":1374129,"watchers":39,"git_url":"git://github.com/BaseXdb/basex.git","ssh_url":"git@github.com:BaseXdb/basex.git","created_at":"2011-02-16T15:02:14Z"},"label":"BaseXdb:master","sha":"8f53162548dd150eea0e8223caa53ca94e1f3f44"},"comments":4,"closed_at":"2011-11-04T08:49:42Z","diff_url":"https://github.com/BaseXdb/basex/pull/252.diff","additions":5,"merged":false,"head":{"ref":"homeDir","user":{"avatar_url":"https://secure.gravatar.com/avatar/6f4f987119e2cf2e4e0f9200f3d9f83a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6f4f987119e2cf2e4e0f9200f3d9f83a","url":"https://api.github.com/users/malamut2","login":"malamut2","id":1080242},"repo":{"name":"basex","fork":true,"master_branch":null,"pushed_at":"2011-11-03T13:35:01Z","clone_url":"https://github.com/malamut2/basex.git","updated_at":"2011-11-03T13:35:01Z","open_issues":0,"homepage":"http://basex.org","forks":0,"private":false,"svn_url":"https://svn.github.com/malamut2/basex","language":"Java","url":"https://api.github.com/repos/malamut2/basex","owner":{"avatar_url":"https://secure.gravatar.com/avatar/6f4f987119e2cf2e4e0f9200f3d9f83a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6f4f987119e2cf2e4e0f9200f3d9f83a","url":"https://api.github.com/users/malamut2","login":"malamut2","id":1080242},"html_url":"https://github.com/malamut2/basex","description":"BaseX Main Repository.","size":140,"id":2459498,"watchers":1,"git_url":"git://github.com/malamut2/basex.git","ssh_url":"git@github.com:malamut2/basex.git","created_at":"2011-09-26T10:18:03Z"},"label":"malamut2:homeDir","sha":"32ce8d13403356f690fbe69aeed4182cee9c5f94"},"url":"https://api.github.com/repos/BaseXdb/basex/pulls/252","body":"\r\nCurrently, BaseX will always automatically determine where the database files are residing. This is a nice feature, but it should be possible to overrule the automatic. For example, in my company, we have an internal policy that data of each service must reside in the directory /var/(companyname)/(servicename)/, which is of course not the directory where the actual application resides. I intend to write a service using BaseX, which is only possible if I can get BaseX to use that directory regardless of the work directory.\r\n\r\nSince BaseX determines the directory at a very early stage of application life cycle (on class loading), it is not easily possible to create an API for controlling the directory. It is possible, however, to define a property which will be used to determine the directory if it is set. This can be achieved with just two simple additional lines in Util.homeDir(). I have preliminarily named the property 'basexdb.home'.\r\n","merged_at":null,"review_comments":0,"html_url":"https://github.com/BaseXdb/basex/pull/252","_links":{"comments":{"href":"https://api.github.com/repos/BaseXdb/basex/issues/252/comments"},"html":{"href":"https://github.com/BaseXdb/basex/pull/252"},"review_comments":{"href":"https://api.github.com/repos/BaseXdb/basex/pulls/252/comments"},"self":{"href":"https://api.github.com/repos/BaseXdb/basex/pulls/252"}},"issue_url":"https://github.com/BaseXdb/basex/issues/252","number":252,"title":"Home dir","mergeable":true,"id":460128,"patch_url":"https://github.com/BaseXdb/basex/pull/252.patch","changed_files":1,"created_at":"2011-11-03T14:17:03Z"},"action":"closed","number":252}