karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maggu2810 <maggu2...@gmail.com>
Subject Re: system properties file (multiple ones)
Date Fri, 21 Aug 2015 13:41:52 GMT
2015-08-21 15:25 GMT+02:00 Benson Margulies [via Karaf]
<ml-node+s922171n4041999h25@n3.nabble.com>:
> It is read at startup. The important question is whether it ends up in the
> etc directory. Have you looked at the generated assembly to see if the file
> is in the right place? Perhaps it's not travelling from src/main/resources
> to etc correctly.

Tried that one:

===

$ cat etc/overrides.properties
test_overrides=true

The file overrides.properties must not be used for this, Karaf cannot
be started:

2015-08-21 15:37:50,481 | ERROR | pool-1-thread-1  |
BootFeaturesInstaller            | 8 - org.apache.karaf.features.core
- 4.0.0 | Error installing boot features
java.lang.IllegalArgumentException: No path specified on clause:
test_overrides = true
        at org.apache.felix.utils.manifest.Parser.parseClauses(Parser.java:73)[8:org.apache.karaf.features.core:4.0.0]

===

$ cat etc/override.properties
test_override=true

karaf@root()> system:property | grep test
karaf@root()>

So, the file is not evaluated and the content is not set as system properties.

===

$ tail -n 1 etc/system.properties
test_system=true

karaf@root()> system:property | grep test
test_system=true

That was expected.




--
View this message in context: http://karaf.922171.n3.nabble.com/system-properties-file-multiple-ones-tp4041994p4042001.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Mime
View raw message