Add the logback config to the root directory of the assembly
This commit is contained in:
parent
cf165b7fc0
commit
a5834e3533
|
@ -124,7 +124,7 @@
|
|||
<classPath>
|
||||
<mainClass>ctbrec.ui.Launcher</mainClass>
|
||||
<addDependencies>false</addDependencies>
|
||||
<preCp>anything</preCp>
|
||||
<preCp>.</preCp>
|
||||
</classPath>
|
||||
<downloadUrl>https://jdk.java.net/</downloadUrl>
|
||||
<jre>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
pushd $(dirname $0)
|
||||
DIR="$(dirname "$0")"
|
||||
pushd "${DIR}"
|
||||
JAVA=./jre/bin/java
|
||||
$JAVA -version
|
||||
$JAVA -Djdk.gtk.version=3 -cp ${name.final}.jar ctbrec.ui.Launcher
|
||||
$JAVA -Djdk.gtk.version=3 -cp "${DIR}:${name.final}.jar" ctbrec.ui.Launcher
|
||||
popd
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
pushd $(dirname $0)
|
||||
DIR="$(dirname "$0")"
|
||||
pushd "${DIR}"
|
||||
JAVA=java
|
||||
$JAVA -version
|
||||
$JAVA -Djdk.gtk.version=3 -cp ${name.final}.jar ctbrec.ui.Launcher
|
||||
$JAVA -Djdk.gtk.version=3 -cp "${DIR}:${name.final}.jar" ctbrec.ui.Launcher
|
||||
popd
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
DIR=$(dirname $0)
|
||||
pushd $DIR
|
||||
pushd "$DIR"
|
||||
JAVA_HOME="$DIR/jre/Contents/Home"
|
||||
JAVA="$JAVA_HOME/bin/java"
|
||||
$JAVA -version
|
||||
$JAVA -cp ${name.final}.jar ctbrec.ui.Launcher
|
||||
$JAVA -cp "${DIR}:${name.final}.jar" ctbrec.ui.Launcher
|
||||
popd
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
DIR=$(dirname $0)
|
||||
pushd $DIR
|
||||
pushd "$DIR"
|
||||
JAVA=java
|
||||
$JAVA -version
|
||||
$JAVA -cp ${name.final}.jar ctbrec.ui.Launcher
|
||||
$JAVA -cp "${DIR}:${name.final}.jar" ctbrec.ui.Launcher
|
||||
popd
|
|
@ -0,0 +1 @@
|
|||
jre\bin\java -Xmx512m -cp ".;${name.final}.jar" ctbrec.ui.Launcher
|
|
@ -24,6 +24,10 @@
|
|||
<source>${project.basedir}/README.md</source>
|
||||
<outputDirectory>ctbrec</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${project.basedir}/src/main/resources/logback.xml</source>
|
||||
<outputDirectory>ctbrec</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${project.basedir}/ffmpeg/ffmpeg-linux64</source>
|
||||
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
||||
|
|
|
@ -24,6 +24,10 @@
|
|||
<source>${project.basedir}/README.md</source>
|
||||
<outputDirectory>ctbrec</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${project.basedir}/src/main/resources/logback.xml</source>
|
||||
<outputDirectory>ctbrec</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${project.basedir}/ffmpeg/ffmpeg-macos64</source>
|
||||
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
||||
|
|
|
@ -22,6 +22,15 @@
|
|||
<source>${project.basedir}/README.md</source>
|
||||
<outputDirectory>ctbrec</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${project.basedir}/src/main/resources/logback.xml</source>
|
||||
<outputDirectory>ctbrec</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${project.basedir}/src/assembly/ctbrec.bat</source>
|
||||
<outputDirectory>ctbrec</outputDirectory>
|
||||
<filtered>true</filtered>
|
||||
</file>
|
||||
<file>
|
||||
<source>${project.basedir}/ffmpeg/ffmpeg-win64.exe</source>
|
||||
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
||||
|
|
|
@ -18,7 +18,7 @@ start() {
|
|||
|
||||
# start ctbrec
|
||||
$JAVA -version
|
||||
$JAVA -Xmx256m -cp "${DIR}/${name.final}.jar" -Dctbrec.config=server.json ctbrec.recorder.server.HttpServer &
|
||||
$JAVA -Xmx256m -cp "${DIR}:${DIR}/${name.final}.jar" -Dctbrec.config=server.json ctbrec.recorder.server.HttpServer &
|
||||
|
||||
# write a pid file
|
||||
echo $! > "${PIDFILE}"
|
||||
|
|
|
@ -4,5 +4,5 @@ DIR=$(dirname $0)
|
|||
pushd $DIR
|
||||
JAVA=java
|
||||
$JAVA -version
|
||||
$JAVA -Xmx192m -cp ${name.final}.jar -Dctbrec.config=server.json ctbrec.recorder.server.HttpServer
|
||||
$JAVA -Xmx192m -cp "${DIR}:${name.final}.jar" -Dctbrec.config=server.json ctbrec.recorder.server.HttpServer
|
||||
popd
|
||||
|
|
|
@ -1 +1 @@
|
|||
java -Xmx192m -cp ${name.final}.jar -Dctbrec.config=server.json ctbrec.recorder.server.HttpServer
|
||||
java -Xmx192m -cp .;${name.final}.jar -Dctbrec.config=server.json ctbrec.recorder.server.HttpServer
|
|
@ -38,6 +38,10 @@
|
|||
<source>${project.basedir}/src/assembly/ffmpeg.txt</source>
|
||||
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${project.basedir}/src/main/resources/logback.xml</source>
|
||||
<outputDirectory>ctbrec</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${project.build.directory}/${name.final}.jar</source>
|
||||
<outputDirectory>ctbrec</outputDirectory>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<configuration scan="true" scanPeriod="30 seconds">
|
||||
<configuration scan="true" scanPeriod="10 seconds">
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder
|
||||
|
|
Loading…
Reference in New Issue