#!/bin/bash

# This file will start the Osm Extraction UI with custom memory settings for
# the JVM. With the below settings the heap size (Available memory for the application)
# will range from 64 megabyte up to 512 megabyte.

# Pass full paths to route_tests.xml files. All routing.xml configuration should be configured by OsmAndMapCreator
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ -z "$JAVA_OPTS" ]; then 
	JAVA_OPTS="-Xms64M"
fi
java -Djava.util.logging.config.file="$DIR/logging.properties" $JAVA_OPTS -cp "$DIR/OsmAndMapCreator.jar:$DIR/lib/*.jar" net.osmand.MainUtilities "$@"
