Skip to content

Commit

Permalink
specify directories so we do not rely on the current working directory (
Browse files Browse the repository at this point in the history
openhab#640)

* specify directories so we do not rely on the current working directory

The current working directory has been changed between Bnd 4.1.0 and
4.2.0 and we should not rely on a specific choosen one.
We should set the appropriate directories ourself.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
  • Loading branch information
maggu2810 authored and kaikreuzer committed Mar 13, 2019
1 parent 55801cf commit 4719489
Show file tree
Hide file tree
Showing 17 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion demo/app/app.bndrun
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ feature.openhab-model-runtime-all: \
-runproperties: \
osgi.console=,\
osgi.console.enable.builtin=false,\
logback.configurationFile=file:${.}/logback.xml
logback.configurationFile=file:${.}/runtime/logback.xml,\
smarthome.configdir=${.}/runtime/conf,\
smarthome.userdata=${.}/runtime/userdata

-runblacklist: bnd.identity;id='org.apache.aries.javax.jax.rs-api'

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion demo/app/logback.xml → demo/app/runtime/logback.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<configuration>
<configuration scan="true" scanPeriod="30 seconds">

<!-- defined a console append -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
Expand Down Expand Up @@ -37,5 +37,6 @@
</root>

<logger name="org.eclipse.smarthome" level="INFO" />
<logger name="org.openhab.core" level="INFO" />

</configuration>
Empty file added demo/app/runtime/userdata/.keep
Empty file.

0 comments on commit 4719489

Please sign in to comment.