Michael Lipp
Michael Lipp

Reputation: 400

Does bnd launcher support configuration files that are made known with system properties?

When I launch an application from bndtools (using a file launch.bndrun), I can specify -runproperties: java.util.logging.config.file=jul-debug.properties, with jul-debug.properties being a file in the working directory. Everything is fine and works as expected, i.e. the java.util.logging properties are read from my configuration file.

When I create an export (launch.jar) using this lauch.bndrun, the configuration file jul-debug.properties is not included in the launch.jar. Can I add some instruction to launch.bndrun that causes the jul-debug.properties to be included in laucn.jar in such a way that jar -jar launch.jar will cause the configuration file to be evaluated?

I looked through all the -run... instructions for bnd, but couldn't find anything.

Upvotes: 0

Views: 209

Answers (0)

Related Questions