Ensure dspace.dir system property also specified for Integration Tests

This commit is contained in:
Tim Donohue
2015-10-15 14:35:34 -05:00
parent a1d3d98be1
commit 9bbf81a1e2
2 changed files with 3 additions and 2 deletions

View File

@@ -305,8 +305,8 @@
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<!-- Specify the dspace.cfg file to use for test environment -->
<dspace.configuration>${agnostic.build.dir}/testing/dspace/config/dspace.cfg</dspace.configuration>
<!-- Specify the dspace.dir to use for test environment -->
<dspace.dir>${agnostic.build.dir}/testing/dspace/</dspace.dir>
<!-- Turn off any DSpace logging -->
<dspace.log.init.disable>true</dspace.log.init.disable>
</systemPropertyVariables>

View File

@@ -74,6 +74,7 @@ public class AbstractDSpaceTest
kernelImpl = DSpaceKernelInit.getKernel(null);
if (!kernelImpl.isRunning())
{
// NOTE: the "dspace.dir" system property MUST be specified via Maven
kernelImpl.start(System.getProperty("dspace.dir")); // init the kernel
}