Commit 66cdd7ea authored by iwakeh's avatar iwakeh
Browse files

Make database credentials command line configurable.

The system properties to set are 'exonerator.db.user' and 'exonerator.db.pw',
e.g., '-Dexonerator.db.user=dummyuser -Dexonerator.db.pw=dummypassword'.
parent 7817a7cc
......@@ -28,8 +28,12 @@
<Arg>jdbc/exonerator</Arg>
<Arg>
<New class="org.postgresql.ds.PGPoolingDataSource">
<Set name="user">dummydatabaseuser</Set>
<Set name="password">dummypassword</Set>
<Set name="user">
<SystemProperty name="exonerator.db.user" />
</Set>
<Set name="password">
<SystemProperty name="exonerator.db.pw" />
</Set>
<Set name="databaseName">exonerator</Set>
<Set name="serverName">localhost</Set>
<Set name="dataSourceName">exonerator</Set>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment