-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.sh
32 lines (28 loc) · 1014 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# Clean is necessary because of the twirl templates. They won't be recompiled (even if changed) unless they've been deleted.
mvn clean package
rm -rf release
mkdir -p release/
rsync -a ./scripts ./release/
rsync -a ./src/test/resources/ ./release/
find ./target/scala-2.13/ -name '*.jar' -exec mv {} ./release/ \;
cd release
JARFILE=*.jar
mkdir uppall_files_success
for f in examples/*.conf
do
OUT=./uppall_files_success/$(basename ${f%.*}).xml
java -D"log4j.configurationFile=log4j2.xml" -jar $JARFILE -m ${f} -o $OUT --verify
done
mkdir uppall_files_mistakes
for f in common_mistakes/*.conf
do
OUT=./uppall_files_mistakes/$(basename ${f%.*}).xml
java -D"log4j.configurationFile=log4j2.xml" -jar $JARFILE -m ${f} -o $OUT --verify --trace
done
mkdir uppall_created_algorithm
for f in examples_no_algorithm/*.conf
do
OUT=./uppall_created_algorithm/$(basename ${f%.*}).xml
java -D"log4j.configurationFile=log4j2.xml" -jar $JARFILE -m ${f} -o $OUT --verify --generate
done