Compare commits

..

6 Commits

Author SHA1 Message Date
fszimnau
96fee5b19c implemented as java module 2025-09-10 16:13:31 +02:00
fszimnau
847d899a2a pass through all arguments 2025-09-09 13:53:04 +02:00
fszimnau
941e15389f added cleanup script for when the run script is aborted before being able to clean up 2025-09-04 16:54:22 +02:00
fszimnau
9addfe51d7 added comment for "git for windows" bash 2025-09-04 16:53:52 +02:00
fszimnau
a21c318d90 script for running command
-> copy jar to be indifferent of whether the application has been redeployed
2025-09-04 16:44:29 +02:00
fszimnau
b473dcf264 create jar 2025-09-04 16:29:35 +02:00
5 changed files with 29 additions and 4 deletions

5
cleanupRunDirs.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -uo pipefail
# when executed as executable file in "git for windows" bash some things won't work, so always run with prefixed command
rm -rf /tmp/zeitlaeufer_*;

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -uo pipefail
# when executed as executable file in "git for windows" bash some things won't work, so always run with prefixed command
if [[ $# -ge 1 && $1 == "clean" ]]; then
rm -r target/;
fi

View File

@@ -1,8 +1,11 @@
#!/usr/bin/env bash
set -uo pipefail
if [[ -d dist/ ]]; then
rm -r dist/;
# when executed as executable file in "git for windows" bash some things won't work, so always run with prefixed command
if [[ ! -e dist ]]; then
mkdir dist;
fi
cp -r target/ dist/;
rm -r dist/* 2>/dev/null;
cd target/;
jar cf ../dist/zeitlaeufer.jar **/*;
cd ..;

14
runProject.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -uo pipefail
# when executed as executable file in "git for windows" bash some things won't work, so always run with prefixed command
originDir=$(pwd);
cd ~/zeitlaeufer/;
tmpDir="/tmp/zeitlaeufer_$RANDOM";
mkdir $tmpDir;
cp dist/zeitlaeufer.jar $tmpDir;
cd $originDir;
# java -cp $tmpDir/zeitlaeufer.jar $@;
# -p <=> --module-path | -m <=> --module
java --module-path $tmpDir/zeitlaeufer.jar --module zeitlaeufer/$@;
rm -r $tmpDir;

2
src/module-info.java Normal file
View File

@@ -0,0 +1,2 @@
module zeitlaeufer {
}