There is a line at the beginning of this script that takes care of not running if java files already generated:

[...]
if [[ $(find $GENERATED_PATH -name '*.java' | wc -l) -gt 5 ]]; then 
[..]