...
Download and build the nailgun client and server (this assumes that dspace is installed in /dspace, that you have gcc installed and that you can run binaries from ~/bin):
Code Block git clone git://github.com/martylamb/nailgun.git cd nailgun mvn clean install cp nailgun-server/target/nailgun-server-0.9.2-SNAPSHOT.jar /dspace/webapps/xmlui/WEB-INF/lib/ cd nailgun-client gcc ng.c -o ng cp ng ~/bin # exit your shell and launch it again
Start the nailgun server and add DSpace to its classpath:
Code Block java -classpath /dspace/lib/nailgun-server-0.9.2-SNAPSHOT.jar com.martiansoftware.nailgun.NGServer & ng ng-cp /dspace/lib/*.jar /dspace/config
Run the client:
Code Block # instead of this: /dspace/bin/dspace # use this: ng org.dspace.app.launcher.ScriptLauncher # Example. Instead of /dspace/bin/dspace update-discovery-index # use this ng org.dspace.app.launcher.ScriptLauncher update-discovery-index
After you're finished running multiple invocations of the DSpace command-line scripts, you can stop the Nailgun server:
Code Block ng ng-stop