1#!/usr/bin/env bash 2 3# Rebuilds the metamodel based on the nodes in javaparser-core 4 5# We introspect the nodes in javaparser-core, so we need an update build of it. 6mvn clean install -DskipTests 7if [ "$?" -ne 0 ]; then 8 exit 1 9fi 10 11# Remember current directory 12pushd javaparser-metamodel-generator 13 14# Generate code 15mvn clean package -P run-metamodel-generator -DskipTests 16 17# Go back to previous directory 18popd 19 20# Fresh code has been generated in core, so rebuild the whole thing again. 21mvn clean install -DskipTests 22if [ "$?" -ne 0 ]; then 23 exit 1 24fi 25