summarylogtreecommitdiffstats
path: root/beast2-beauti
blob: 3f5048df1a61e119c30a53bfb46fc5dd58ba37e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
self_path=$(realpath $0)
environment_file=$(dirname $self_path)/beast2-environment
source $environment_file

extra_jfx_modules=(
  web
  media
)

EXTRA_JFX_MODULES=$(printf "javafx.%s," "${extra_jfx_modules[@]}" |sed 's/,*$//g')
JFX_MODULES="${JFX_MODULES},$EXTRA_JFX_MODULES"

"$JAVA" -Dlauncher.wait.for.exit=true -Xms256m -Xmx8g -Djava.library.path=$LD_LIBRARY_PATH -Duser.language=en \
    -cp $DEFAULT_CP:$BEAST_LIB/launcher.jar \
    --module-path $JFX_LIBS --add-modules "$JFX_MODULES" \
    beast.pkgmgmt.launcher.BeautiLauncher -capture $*