Public Access
15 lines
693 B
Python
15 lines
693 B
Python
#!/usr/bin/env python3
|
|
"""Run the shared desert placement checks without a server or saved world."""
|
|
import subprocess
|
|
import tempfile
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
if __name__ == "__main__":
|
|
with tempfile.TemporaryDirectory(prefix="rivencraft-desert108-") as directory:
|
|
subprocess.run(["javac", "--release", "21", "-d", directory,
|
|
str(ROOT / "shared/src/main/java/net/dnorberg/rivencraft/shared/DesertVegetation.java"),
|
|
str(ROOT / "scripts/fixtures/desert108/DesertVegetationChecks.java")], check=True)
|
|
subprocess.run(["java", "-cp", directory, "DesertVegetationChecks"], check=True)
|