script for running command
-> copy jar to be indifferent of whether the application has been redeployed
This commit is contained in:
11
runProject.sh
Normal file
11
runProject.sh
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -uo pipefail
|
||||||
|
|
||||||
|
originDir=$(pwd);
|
||||||
|
cd ~/zeitlaeufer/;
|
||||||
|
tmpDir="/tmp/zeitlaeufer_$RANDOM";
|
||||||
|
mkdir $tmpDir;
|
||||||
|
cp dist/zeitlaeufer.jar $tmpDir;
|
||||||
|
cd $originDir;
|
||||||
|
java -cp $tmpDir/zeitlaeufer.jar $1;
|
||||||
|
rm -r $tmpDir;
|
Reference in New Issue
Block a user