RNG-40: Script to run the "dummy" example application.
Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/857cbb05 Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/857cbb05 Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/857cbb05 Branch: refs/heads/master Commit: 857cbb05c86defd0c852837ad0eb5c5ab3faa9b5 Parents: 4424bf9 Author: Gilles <[email protected]> Authored: Tue Feb 13 23:24:20 2018 +0100 Committer: Gilles <[email protected]> Committed: Tue Feb 13 23:24:20 2018 +0100 ---------------------------------------------------------------------- commons-rng-examples/examples-jpms/runApp.sh | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-rng/blob/857cbb05/commons-rng-examples/examples-jpms/runApp.sh ---------------------------------------------------------------------- diff --git a/commons-rng-examples/examples-jpms/runApp.sh b/commons-rng-examples/examples-jpms/runApp.sh new file mode 100755 index 0000000..d55ba4f --- /dev/null +++ b/commons-rng-examples/examples-jpms/runApp.sh @@ -0,0 +1,26 @@ +#!/bin/bash -e + +# Script assumes that the JAR files have all been generated (e.g. by calling +# "mvn package" from the top level project directory). + +TOPDIR=../.. +RNGVERSION=1.1-SNAPSHOT +TARGETDIR=target + +# Module path. +MODPATH=\ +$TOPDIR/commons-rng-core/$TARGETDIR/commons-rng-core-$RNGVERSION.jar:\ +$TOPDIR/commons-rng-simple/$TARGETDIR/commons-rng-simple-$RNGVERSION.jar:\ +$TOPDIR/commons-rng-examples/examples-jpms/jpms-app/$TARGETDIR/commons-rng-examples-jpms-app-$RNGVERSION.jar:\ +$TOPDIR/commons-rng-examples/examples-jpms/jpms-lib/$TARGETDIR/commons-rng-examples-jpms-lib-$RNGVERSION.jar:\ +$TOPDIR/commons-rng-sampling/$TARGETDIR/commons-rng-sampling-$RNGVERSION.jar:\ +$TOPDIR/commons-rng-client-api/$TARGETDIR/commons-rng-client-api-$RNGVERSION.jar + +# Application. +MOD=org.apache.commons.rng.examples.jpms.app/org.apache.commons.rng.examples.jpms.app.DiceGameApplication + +# Arguments of the application (see source). +ARGS="3 4 19 MT" + +# Assuming Java 9 (or later). +java --module-path $MODPATH --module $MOD $ARGS
