Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to pass property files not in start.d to start.jar ?

that command line is invalid.
how about ...

> java -jar start.jar myapp.property=foo

if you want a list of properties managed in a file, create a ${jetty.base}/start.ini and put your properties in there. (skip the start.d/*.ini use entirely)


--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts


On Tue, May 6, 2014 at 4:27 PM, Tom Zeller <tzeller@xxxxxxxxxxxxxx> wrote:
Hi,

According to the documentation [1], it should be possible to pass a
properties file located at an arbitrary path to start.jar, but this
does not seem to be the case :

 > java -jar start.jar app.properties
 Unrecognized argument: "app.properties" in <command-line>

It looks like command line args are not passed in totality from
StartArgs to XmlConfiguration.

Is there a way to source properties for use in <Property /> elements
from a properties file at an arbitrary path (not in start.d) ?

Thanks,
Tom

[1] http://www.eclipse.org/jetty/documentation/9.1.2.v20140210/jetty-xml-usage.html
(Setting Parameters in Configuration Files)
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top