diff options
Diffstat (limited to 'run_core_generators.sh')
-rwxr-xr-x | run_core_generators.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/run_core_generators.sh b/run_core_generators.sh new file mode 100755 index 000000000..3fb9241c1 --- /dev/null +++ b/run_core_generators.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# Runs all the code generators. +# If the node structure was changed, run_metamodel_generator.sh first! + +# Remember current directory +pushd javaparser-core-generators + +# Generate code +mvn clean package -P run-core-generators -DskipTests + +# Go back to previous directory +popd + +# Fresh code has been generated in core, so rebuild the whole thing again. +mvn clean install -DskipTests +if [ "$?" -ne 0 ]; then + exit 1 +fi |