Skip to content

Commit

Permalink
phoebus-setup-hook: simplify flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Daniel-Thomas committed Oct 23, 2024
1 parent 9bd91f8 commit 5836840
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pkgs/epnix/tools/phoebus/setup-hook/setup-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ installPhoebusJar() {
local jarName="$2"
local name="$3"
local mainClass="$4"
local D='"file.encoding=UTF-8"'


mkdir -p "$out/share/java"
Expand All @@ -26,10 +25,6 @@ installPhoebusJar() {
makeWrapper "@jdk@/bin/java" "$out/bin/$name" \
--add-flags "-classpath $out/share/java/$jarName:$depsPath/*" \
--add-flags '${JAVA_OPTS}' \
--add-flags "$mainClass" \
--set-default JAVA_XMS "1G" \
--set-default JAVA_XMX "4G" \
--add-flags '-Xms$JAVA_XMS' \
--add-flags '-Xmx$JAVA_XMX' \
--add-flags "-Dfile.encoding=UTF-8"
--add-flags '"file.encoding=UTF-8"'\
--add-flags "$java_runtime_opts"
}

0 comments on commit 5836840

Please sign in to comment.