Last active
December 29, 2015 11:09
-
-
Save gregjan/7662153 to your computer and use it in GitHub Desktop.
startup scripts for configuration file sets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WEBAPP_HOME=/data/tests/fcrepo4/fcrepo-webapp | |
STORE=/data/tests/stores | |
MVN_SETTINGS=/data/tests/m2/settings.xml | |
if [ $# -lt 1 ] ; | |
then | |
echo "usage: $(basename $0) <config dir>" | |
exit 1 | |
fi | |
CONFIG=$(readlink -f "$1") | |
echo "Starting Fedora 4 with config dir: $CONFIG" | |
FEDORA_OPTS="\ | |
-Dfcrepo.binary-store-path=$STORE/binary-store-path \ | |
-Dfcrepo.infinispan.cache_configuration=$CONFIG/infinispan.xml \ | |
-Dfcrepo.modeshape.configuration=file:$CONFIG/repository.json \ | |
-Dfcrepo.ispn.jgroups.configuration=$CONFIG/jgroups-fcrepo-tcp.xml \ | |
-Dcom.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean.default.objectStoreDir=$STORE/arjuna.default.objectstore \ | |
-Dcom.arjuna.ats.arjuna.objectstore.objectStoreDir=$STORE/arjuna.objectstore \ | |
-Dfcrepo.ispn.CacheDirPath=$STORE/ispn \ | |
-Dfcrepo.ispn.binary.CacheDirPath=$STORE/ispn.binary \ | |
-Dfcrepo.modeshape.index.location=$STORE/modeshape.index \ | |
-Dfcrepo.ispn.alternative.CacheDirPath=$STORE/ispn.alternative \ | |
-Dfcrepo.ispn.binary.alternative.CacheDirPath=$STORE/ispn.binary.alternative \ | |
-Dfcrepo.ispn.repo.CacheDirPath=$STORE/ispn.repo" | |
export FEDORA_OPTS | |
killall java | |
rm -rf --preserve-root $STORE/* | |
cd $WEBAPP_HOME | |
mvn -s $MVN_SETTINGS $FEDORA_OPTS clean jetty:run & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment