You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
338 B
16 lines
338 B
#!/bin/bash
|
|
|
|
ANNOTATIONS=(
|
|
org.checkerframework.checker.nullness.qual.Nullable
|
|
)
|
|
|
|
for a in ${ANNOTATIONS[@]}; do
|
|
package=${a%.*}
|
|
class=${a##*.}
|
|
dir=$(dirname $0)/src/${package//.//}
|
|
file=${class}.java
|
|
|
|
mkdir -p ${dir}
|
|
sed -e"s/__PACKAGE__/${package}/" -e"s/__CLASS__/${class}/" tmpl.java > ${dir}/${file}
|
|
done
|