mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 16:07:12 -07:00
Added kobatw-test wrapper to build the kobalt project using the jar in kobaltBuild/libs for testing.
This commit is contained in:
parent
a115111168
commit
bd8ba4c497
1 changed files with 8 additions and 0 deletions
8
kobaltw-test
Normal file
8
kobaltw-test
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
JAR=$(ls -1 -t kobaltBuild/libs/*.jar | grep -Ev "(sources|javadoc)" | head -1)
|
||||
TEMPDIR=$(mktemp -d)
|
||||
cp -pf "$JAR" "$TEMPDIR"
|
||||
TEMPJAR=$TEMPDIR/$(basename "$JAR")
|
||||
export KOBALT_JAR=$TEMPJAR
|
||||
java -jar "$TEMPJAR" "$@"
|
||||
rm -rf "$TEMPDIR"
|
Loading…
Add table
Add a link
Reference in a new issue