Added script to run all examples.

This commit is contained in:
Erik C. Thauvin 2018-07-07 19:56:22 -07:00
parent 7db6cbc839
commit 05531406a9
3 changed files with 17 additions and 7 deletions

View file

@ -1,5 +0,0 @@
task run {
dependsOn(
"java:clean", "java:run",
"kotlin:clean", "kotlin:run", "kotlin:runJava")
}

17
examples/examples.sh Normal file
View file

@ -0,0 +1,17 @@
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: $0 <arg> [...]"
exit 1
fi
dir=$(dirname "$(readlink -f "$0")")
color=$(tput setaf 6)
normal=$(tput sgr0)
for ex in "java" "kotlin"; do
cd "$dir/$ex" || exit 1
echo "> Project: ${color}${ex}${normal}"
gradle clean "$@" --console=plain --no-build-cache || exit 1
echo
done

View file

@ -1,2 +0,0 @@
include "java", "kotlin"
rootProject.name = 'examples'