File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Verify a single file from the CLI:
2626./liquidjava path/to/File.java
2727```
2828
29+ The launcher recompiles ` liquidjava-api ` and ` liquidjava-verifier ` only when local sources or Maven files have changed.
2930Code formatting runs automatically via ` formatter-maven-plugin ` during the ` validate ` phase.
3031
3132## Release
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ mvn exec:java -pl liquidjava-verifier -Dexec.mainClass="liquidjava.api.CommandLi
8383```
8484
8585If you're on Linux/macOS, you can use the ` liquidjava ` script (from the repository root) to simplify the process.
86+ The script recompiles the verifier only when local sources or Maven files have changed.
8687
8788** Test a correct case** :
8889``` bash
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ set -e
3+
4+ cd " $( dirname " $0 " ) "
5+
6+ MARKER=" liquidjava-verifier/target/.liquidjava-last-compile"
7+
8+ if [ ! -d liquidjava-api/target/classes ] || \
9+ [ ! -d liquidjava-verifier/target/classes ] || \
10+ [ ! -f " $MARKER " ] || \
11+ find pom.xml liquidjava-api/pom.xml liquidjava-api/src/main/java \
12+ liquidjava-verifier/pom.xml liquidjava-verifier/src/main/java liquidjava-verifier/src/main/antlr4 \
13+ -newer " $MARKER " -print -quit | grep -q . ; then
14+ mvn compile -pl liquidjava-verifier -am -Dmaven.compiler.useIncrementalCompilation=false
15+ touch " $MARKER "
16+ fi
17+
218mvn exec:java -pl liquidjava-verifier \
319 -Dexec.mainClass=" liquidjava.api.CommandLineLauncher" \
420 -Dexec.args=" $* "
You can’t perform that action at this time.
0 commit comments