mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-23 18:03:11 +00:00
Merge pull request #9 from robintaylor/DS-1160
[DS-1160] - Refactor InitializeDatabase to use Configuration Service rather than Configurationmanager...
This commit is contained in:
@@ -323,6 +323,22 @@
|
||||
</step>
|
||||
</command>
|
||||
|
||||
<command>
|
||||
<name>setup-database</name>
|
||||
<description>Create the database tables</description>
|
||||
<step>
|
||||
<class>org.dspace.storage.rdbms.InitializeDatabase</class>
|
||||
</step>
|
||||
</command>
|
||||
|
||||
<command>
|
||||
<name>clean-database</name>
|
||||
<description>Remove the database tables</description>
|
||||
<step>
|
||||
<class>org.dspace.storage.rdbms.InitializeDatabase</class>
|
||||
</step>
|
||||
</command>
|
||||
|
||||
<command>
|
||||
<name>test-email</name>
|
||||
<description>Test the DSpace email server settings are OK</description>
|
||||
|
@@ -779,10 +779,11 @@ Common usage:
|
||||
<target name="setup_database" description="Create database tables">
|
||||
|
||||
<!-- Load the Schema -->
|
||||
<java classname="org.dspace.storage.rdbms.InitializeDatabase" classpathref="class.path" fork="yes" failonerror="yes">
|
||||
<java classname="org.dspace.app.launcher.ScriptLauncher" classpathref="class.path" fork="yes" failonerror="yes">
|
||||
<sysproperty key="log4j.configuration" value="file:config/log4j-console.properties" />
|
||||
<sysproperty key="dspace.log.init.disable" value="true" />
|
||||
<sysproperty key="dspace.configuration" value="${config}" />
|
||||
<arg value="setup-database" />
|
||||
<arg value="database_schema.sql" />
|
||||
</java>
|
||||
|
||||
@@ -813,10 +814,11 @@ Common usage:
|
||||
<arg value="clean-database.sql" />
|
||||
</java>
|
||||
|
||||
<java classname="org.dspace.storage.rdbms.InitializeDatabase" classpathref="class.path" fork="yes" failonerror="yes">
|
||||
<java classname="org.dspace.app.launcher.ScriptLauncher" classpathref="class.path" fork="yes" failonerror="yes">
|
||||
<sysproperty key="log4j.configuration" value="file:config/log4j-console.properties" />
|
||||
<sysproperty key="dspace.log.init.disable" value="true" />
|
||||
<sysproperty key="dspace.configuration" value="${config}" />
|
||||
<arg value="clean-database" />
|
||||
<arg value="clean-database.sql" />
|
||||
</java>
|
||||
|
||||
|
Reference in New Issue
Block a user