• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 -B clean install -DskipTests
7if [ "$?" -ne 0 ]; then
8    exit 1
9fi
10
11# Remember current directory
12pushd javaparser-core-metamodel-generator
13
14# Generate code
15mvn -B clean package -P run-generators -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 -B clean install -DskipTests
22if [ "$?" -ne 0 ]; then
23    exit 1
24fi
25