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>
|
<classPath>
|
||||||
<mainClass>ctbrec.ui.Launcher</mainClass>
|
<mainClass>ctbrec.ui.Launcher</mainClass>
|
||||||
<addDependencies>false</addDependencies>
|
<addDependencies>false</addDependencies>
|
||||||
<preCp>anything</preCp>
|
<preCp>.</preCp>
|
||||||
</classPath>
|
</classPath>
|
||||||
<downloadUrl>https://jdk.java.net/</downloadUrl>
|
<downloadUrl>https://jdk.java.net/</downloadUrl>
|
||||||
<jre>
|
<jre>
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
pushd $(dirname $0)
|
DIR="$(dirname "$0")"
|
||||||
|
pushd "${DIR}"
|
||||||
JAVA=./jre/bin/java
|
JAVA=./jre/bin/java
|
||||||
$JAVA -version
|
$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
|
popd
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
pushd $(dirname $0)
|
DIR="$(dirname "$0")"
|
||||||
|
pushd "${DIR}"
|
||||||
JAVA=java
|
JAVA=java
|
||||||
$JAVA -version
|
$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
|
popd
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DIR=$(dirname $0)
|
DIR=$(dirname $0)
|
||||||
pushd $DIR
|
pushd "$DIR"
|
||||||
JAVA_HOME="$DIR/jre/Contents/Home"
|
JAVA_HOME="$DIR/jre/Contents/Home"
|
||||||
JAVA="$JAVA_HOME/bin/java"
|
JAVA="$JAVA_HOME/bin/java"
|
||||||
$JAVA -version
|
$JAVA -version
|
||||||
$JAVA -cp ${name.final}.jar ctbrec.ui.Launcher
|
$JAVA -cp "${DIR}:${name.final}.jar" ctbrec.ui.Launcher
|
||||||
popd
|
popd
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DIR=$(dirname $0)
|
DIR=$(dirname $0)
|
||||||
pushd $DIR
|
pushd "$DIR"
|
||||||
JAVA=java
|
JAVA=java
|
||||||
$JAVA -version
|
$JAVA -version
|
||||||
$JAVA -cp ${name.final}.jar ctbrec.ui.Launcher
|
$JAVA -cp "${DIR}:${name.final}.jar" ctbrec.ui.Launcher
|
||||||
popd
|
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>
|
<source>${project.basedir}/README.md</source>
|
||||||
<outputDirectory>ctbrec</outputDirectory>
|
<outputDirectory>ctbrec</outputDirectory>
|
||||||
</file>
|
</file>
|
||||||
|
<file>
|
||||||
|
<source>${project.basedir}/src/main/resources/logback.xml</source>
|
||||||
|
<outputDirectory>ctbrec</outputDirectory>
|
||||||
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<source>${project.basedir}/ffmpeg/ffmpeg-linux64</source>
|
<source>${project.basedir}/ffmpeg/ffmpeg-linux64</source>
|
||||||
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
||||||
|
|
|
@ -24,6 +24,10 @@
|
||||||
<source>${project.basedir}/README.md</source>
|
<source>${project.basedir}/README.md</source>
|
||||||
<outputDirectory>ctbrec</outputDirectory>
|
<outputDirectory>ctbrec</outputDirectory>
|
||||||
</file>
|
</file>
|
||||||
|
<file>
|
||||||
|
<source>${project.basedir}/src/main/resources/logback.xml</source>
|
||||||
|
<outputDirectory>ctbrec</outputDirectory>
|
||||||
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<source>${project.basedir}/ffmpeg/ffmpeg-macos64</source>
|
<source>${project.basedir}/ffmpeg/ffmpeg-macos64</source>
|
||||||
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
||||||
|
|
|
@ -22,6 +22,15 @@
|
||||||
<source>${project.basedir}/README.md</source>
|
<source>${project.basedir}/README.md</source>
|
||||||
<outputDirectory>ctbrec</outputDirectory>
|
<outputDirectory>ctbrec</outputDirectory>
|
||||||
</file>
|
</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>
|
<file>
|
||||||
<source>${project.basedir}/ffmpeg/ffmpeg-win64.exe</source>
|
<source>${project.basedir}/ffmpeg/ffmpeg-win64.exe</source>
|
||||||
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
||||||
|
|
|
@ -18,7 +18,7 @@ start() {
|
||||||
|
|
||||||
# start ctbrec
|
# start ctbrec
|
||||||
$JAVA -version
|
$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
|
# write a pid file
|
||||||
echo $! > "${PIDFILE}"
|
echo $! > "${PIDFILE}"
|
||||||
|
|
|
@ -4,5 +4,5 @@ DIR=$(dirname $0)
|
||||||
pushd $DIR
|
pushd $DIR
|
||||||
JAVA=java
|
JAVA=java
|
||||||
$JAVA -version
|
$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
|
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>
|
<source>${project.basedir}/src/assembly/ffmpeg.txt</source>
|
||||||
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
<outputDirectory>ctbrec/ffmpeg</outputDirectory>
|
||||||
</file>
|
</file>
|
||||||
|
<file>
|
||||||
|
<source>${project.basedir}/src/main/resources/logback.xml</source>
|
||||||
|
<outputDirectory>ctbrec</outputDirectory>
|
||||||
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<source>${project.build.directory}/${name.final}.jar</source>
|
<source>${project.build.directory}/${name.final}.jar</source>
|
||||||
<outputDirectory>ctbrec</outputDirectory>
|
<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">
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder
|
<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder
|
||||||
|
|
Loading…
Reference in New Issue