Merge pull request #9 from robintaylor/DS-1160

[DS-1160] - Refactor InitializeDatabase to use Configuration Service rather than Configurationmanager...
This commit is contained in:
Mark Diggory
2012-05-10 22:38:41 -07:00
3 changed files with 23 additions and 5 deletions

View File

@@ -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>

View File

@@ -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>