2022-02-20 12:22:00 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-03-25 15:33:59 +08:00
|
|
|
java=${1}
|
|
|
|
jar_path=${2}
|
2022-02-20 12:22:00 +08:00
|
|
|
|
2023-03-25 15:33:59 +08:00
|
|
|
puml_src_path=${3}
|
|
|
|
output_dir_path=${4}
|
|
|
|
output_path=${5}
|
|
|
|
finial_path=${6}
|
|
|
|
image_type=${7}
|
2022-02-20 12:22:00 +08:00
|
|
|
|
2023-03-25 15:33:59 +08:00
|
|
|
timestamp=${8}
|
|
|
|
update_js_path=${9}
|
|
|
|
include_path=${10}
|
2022-02-20 12:22:00 +08:00
|
|
|
|
2023-03-25 15:33:59 +08:00
|
|
|
$java -Dapple.awt.UIElement=true -Djava.awt.headless=true -Dplantuml.include.path="$include_path" -jar "$jar_path" "$puml_src_path" -t$image_type -o "$output_dir_path"
|
2022-02-20 12:22:00 +08:00
|
|
|
cp "$output_path" "$finial_path"
|
|
|
|
echo "window.updateDiagramURL('$timestamp')" > "$update_js_path"
|