Mercurial > repos > siwaa > gama_legacy_gen
view src/cmd_gama_headless_legacy_gen.sh @ 4:ad48b8d5acd4 draft
planemo upload for repository https://forgemia.inra.fr/nathalie.rousse/use/-/tree/gama/GAMA_HEADLESS_LEGACY/galaxy-tools/gama_legacy_gen commit 983b35e3ac65be4a73d020fa801b906d8d750de3-dirty
author | siwaa |
---|---|
date | Mon, 09 Dec 2024 17:32:43 +0000 |
parents | 470b8ed4ce1a |
children | 07dcd2acad0b |
line wrap: on
line source
#!/bin/bash # Headless Legacy mode. # # Command to generate a XML file corresponding to an existing experiment : #. ./gama-headless.sh -xml experimentName /path/to/inputFile.gaml /path/to/outputFile.xml # with: # - -xml: flag asking the headless to generate a XML file well-formatted # for our experiment. # - experimentName: name of the experiment to run in headless. # Important : experiment of 'type': 'gui'. # - /path/to/inputFile.gaml: path (relative or absolute) to GAML file # containing the experiment to run. # - /path/to/outputFile.xml: path (relative or absolute) to the # generated XML file. # # With : # - GAMA application in folder ./software # - GAML file (containing the experiment to run) path : ./inputs/model.gaml # - Generated XML file path : ./outputs/file.xml EXPERIMENT_NAME=$1 #EXPERIMENT_NAME="prey_predator" HOME=$(echo $PWD) # !!! Passage en variables d'environnement export MY_JAVA_DIR=${HOME}/_java export MY_TEMP_DIR=${HOME} cd /opt/gama-platform/headless; /bin/bash MY_gama-headless.sh -xml ${EXPERIMENT_NAME} ${HOME}/inputs/model.gaml ${HOME}/outputs/file.xml