aboutsummaryrefslogtreecommitdiff
path: root/run_core_generators.sh
blob: 931d8ae239941f0475b42cbfa11f8bc4d73b7704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 -B clean package -P run-generators -DskipTests

# Go back to previous directory
popd

# Fresh code has been generated in core, so rebuild the whole thing again.
mvn -B clean install -DskipTests
if [ "$?" -ne 0 ]; then
    exit 1
fi