Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Verify a single file from the CLI:
./liquidjava path/to/File.java
```

The launcher recompiles `liquidjava-api` and `liquidjava-verifier` only when local sources or Maven files have changed.
Code formatting runs automatically via `formatter-maven-plugin` during the `validate` phase.

## Release
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ mvn exec:java -pl liquidjava-verifier -Dexec.mainClass="liquidjava.api.CommandLi
```

If you're on Linux/macOS, you can use the `liquidjava` script (from the repository root) to simplify the process.
The script recompiles the verifier only when local sources or Maven files have changed.

**Test a correct case**:
```bash
Expand Down
16 changes: 16 additions & 0 deletions liquidjava
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#!/bin/bash
set -e

cd "$(dirname "$0")"

MARKER="liquidjava-verifier/target/.liquidjava-last-compile"

if [ ! -d liquidjava-api/target/classes ] || \
[ ! -d liquidjava-verifier/target/classes ] || \
[ ! -f "$MARKER" ] || \
find pom.xml liquidjava-api/pom.xml liquidjava-api/src/main/java \
liquidjava-verifier/pom.xml liquidjava-verifier/src/main/java liquidjava-verifier/src/main/antlr4 \
-newer "$MARKER" -print -quit | grep -q .; then
mvn compile -pl liquidjava-verifier -am -Dmaven.compiler.useIncrementalCompilation=false
touch "$MARKER"
fi

mvn exec:java -pl liquidjava-verifier \
-Dexec.mainClass="liquidjava.api.CommandLineLauncher" \
-Dexec.args="$*"
Loading