.h2.server.properties file location

934 views
Skip to first unread message

leekiangiap

unread,
Sep 21, 2010, 12:51:18 AM9/21/10
to H2 Database
Hi,

I have study through some of the source code related
to .h2.server.properties file

In my humble opinion, will it be better for the user to specify the
directory path where the file is located instead of forcefully using
SysProperties.USER_HOME (i.e. user.home System Properties) as the
directory?

What I am currently doing to have my .h2.server.properties file
relocate to other directory is as follow:
* copy h2.server.properties from USER_HOME to \Projects\h2database
directory
* start the server using the following command by changing the
user.home System Property
java -Duser.home="\Projects\h2database" -cp \Develops
\h2database12143\bin\h2*.jar org.h2.tools.Server -webAllowOthers

Thomas Mueller

unread,
Sep 24, 2010, 12:27:51 PM9/24/10
to h2-da...@googlegroups.com
Hi,

What about using a (different, H2 specific) system property instead of
a command line option? I really don't know which one is better...
There is already a feature request:

http://code.google.com/p/h2database/issues/detail?id=159

> In my humble opinion, will it be better for the user to specify the
> directory path where the file is located instead of forcefully using
> SysProperties.USER_HOME (i.e. user.home System Properties) as the
> directory?

I think using the user home directory by default is OK. But having a
way to use a different directory is fine of course. I will increase
the priority of the request, but I'm afraid I will not have time to
implement it myself yet. Patches are always welcome!

Regards,
Thomas

Reply all
Reply to author
Forward
0 new messages