From: Adam Date: Sat, 10 Sep 2016 00:28:35 +0000 (-0400) Subject: Update run.sh to use mvn exec X-Git-Url: https://jfr.im/git/irc/rizon/acid.git/commitdiff_plain/a65cbf8a051e89670d944e7c4dbccce3a521fe06?hp=a9139c31164ed386fd15aab8dd6ab2eafd202cd8 Update run.sh to use mvn exec --- diff --git a/acid/pom.xml b/acid/pom.xml index 1ff37be..77748e5 100644 --- a/acid/pom.xml +++ b/acid/pom.xml @@ -163,4 +163,34 @@ + + + + + + !windows + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.4.0 + + + -XX:+HeapDumpOnOutOfMemoryError + -Xmx256M + -classpath + + net.rizon.acid.core.Acidictive + + ${project.basedir}/.. + + + + + + + diff --git a/acid/src/main/resources/run.sh b/acid/src/main/resources/run.sh new file mode 100755 index 0000000..9cb9ca7 --- /dev/null +++ b/acid/src/main/resources/run.sh @@ -0,0 +1,2 @@ +#!/bin/sh +java $* >>acid.log 2>&1 & diff --git a/run.sh b/run.sh index 0663900..36e059f 100755 --- a/run.sh +++ b/run.sh @@ -1,7 +1,4 @@ #!/bin/bash -JAR=acid/target/acid-acid-4.0-SNAPSHOT-jar-with-dependencies.jar -# TODO: LD_PRELOAD configurable here? -java -XX:+HeapDumpOnOutOfMemoryError -Xms64m -Xmx256m -jar $JAR >geoserv.log 2>&1 & -echo "Acidictive started" +mvn exec:exec -pl acid -Dexec.executable=acid/src/main/resources/run.sh