From 99c159b0764caeeb09cc620dc0155df329e5ca66 Mon Sep 17 00:00:00 2001 From: Pascal Davoust Date: Fri, 1 Mar 2024 13:19:38 +0100 Subject: [PATCH] Fix log4j stderr message about not finding a logging implementation when using jsign CLI --- jsign/src/choco/tools/jsign.cmd | 1 - jsign/src/deb/data/usr/share/jsign/jsign.sh | 1 - jsign/src/main/resources/log4j2.component.properties | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 jsign/src/main/resources/log4j2.component.properties diff --git a/jsign/src/choco/tools/jsign.cmd b/jsign/src/choco/tools/jsign.cmd index 61bdd99e..68d1c290 100644 --- a/jsign/src/choco/tools/jsign.cmd +++ b/jsign/src/choco/tools/jsign.cmd @@ -3,5 +3,4 @@ java %JSIGN_OPTS% ^ -Djava.net.useSystemProxies=true ^ -Dbasename=jsign ^ - -Dlog4j2.loggerContextFactory=net.jsign.log4j.simple.SimpleLoggerContextFactory ^ -jar %~dp0\jsign.jar %* diff --git a/jsign/src/deb/data/usr/share/jsign/jsign.sh b/jsign/src/deb/data/usr/share/jsign/jsign.sh index 7ae12013..bd692b12 100644 --- a/jsign/src/deb/data/usr/share/jsign/jsign.sh +++ b/jsign/src/deb/data/usr/share/jsign/jsign.sh @@ -3,5 +3,4 @@ java $JSIGN_OPTS \ -Djava.net.useSystemProxies=true \ -Dbasename=`basename "$0"` \ - -Dlog4j2.loggerContextFactory=net.jsign.log4j.simple.SimpleLoggerContextFactory \ -jar /usr/share/jsign/jsign-@VERSION@.jar "$@" diff --git a/jsign/src/main/resources/log4j2.component.properties b/jsign/src/main/resources/log4j2.component.properties new file mode 100644 index 00000000..b5a29ed5 --- /dev/null +++ b/jsign/src/main/resources/log4j2.component.properties @@ -0,0 +1 @@ +log4j2.loggerContextFactory=net.jsign.log4j.simple.SimpleLoggerContextFactory \ No newline at end of file