#!/bin/bash

# Headless Legacy mode.
#
# Command to run an experiment plan XML file associated with a GAML file :
# ./gama-headless.sh /path/to/file.xml /path/to/generated/outputFolder
# with:
# - /path/to/file.xml: path (relative or absolute) to the XML file
#   containing the full exploration plan to run by the headless.
# - /path/to/generated/outputFolder: path (relative or absolute)
#   which will be generated by GAMA and hold every output files
#   (variables, snapshots, and console messages).

# With :
# - GAMA application in folder ./software
# - [input] XML file path : ./exp/file.xml
# - [input] GAML file (associated with XML file) path : ./exp/model.gaml
# - [output] the outputs folder ./exp/outputs

HOME=$(echo $PWD)
cd software/gama-platform/headless;
/bin/bash MY_gama-headless.sh ${HOME}/exp/file.xml ${HOME}/exp/outputs

