blob: 2644f9804e5a06f2e9d7666f2f77758be758dbd1 [file] [log] [blame]
#!/usr/bin/env bash
# Rebuilds the metamodel based on the nodes in javaparser-core
# We introspect the nodes in javaparser-core, so we need an update build of it.
mvn clean install -DskipTests
if [ "$?" -ne 0 ]; then
exit 1
fi
# Remember current directory
pushd javaparser-metamodel-generator
# Generate code
mvn clean package -P run-metamodel-generator -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