Set the resources directory

The service determines where to find its data and resources using the system property RESOURCE_PATH. You can set this property directly when running the service with Java, or use the provided start scripts:
  • Direct run
    java -DRESOURCE_PATH=/path/to/resources -jar ga-addressing-service-<version>.jar
  • Linux/macOS
    start.sh
    • If RESOURCE_PATH is not already set, it defaults to ../resources.

    • The script automatically finds the latest ga-addressing-service-*.jar file.

    • It uses -DRESOURCE_PATH="$RESOURCE_PATH" when starting the service.

  • Windows
    start.bat

    This script performs the same setup and passes the property for Windows environments.

Examples

You can use the default resource path or override it by setting RESOURCE_PATH before running the scripts.

  • Linux/macOS:

    # Use default ../resources from start.sh
      ./start.sh
                
    # Or override
    RESOURCE_PATH=/data/addressing ./start.sh
  • Windows:

    REM Use default from start.bat
    start.bat
                
    REM Or override
    set RESOURCE_PATH=C:\data\addressing\resources
    start.bat