A note about Jetty <Property/> elements sourced from conf/idp.properties

Tom Zeller tzeller at dragonacea.biz
Tue May 6 19:14:39 EDT 2014


I am not sure how to configure Jetty's native <Property />
configuration elements via idp.properties. Although the documentation
[1] seems to indicate that it is possible to pass a properties file
located at an arbitrary path to start.jar, the error "Unrecognized
argument: "idp.properties" in <command-line>" is thrown. However, it
is possible to place idp.properties in one of Jetty's start.d
directories for its properties to be available in <Property />
elements. We don't want two copies of that file though.

I was hoping to avoid system properties and Jetty's <SystemProperty />
(which is similar to <Property /> in function but not source).

I was also hoping for container keystore paths and passwords to be in
idp.properties, but right now they would be in jetty-base/start.d,
which I do not like much.

I guess we could file a bug, not worry about it, or write a helper
class to conjure up properties from idp.properties using the jetty.xml
native syntax.

It turns out that start.jar calls XmlConfiguration.main() which does
accept properties files from arbitrary locations, but for some reason
command line args are not passed in totality between the two Jetty
classes.

Hope this make sense.

[1] http://www.eclipse.org/jetty/documentation/9.1.2.v20140210/jetty-xml-usage.html
(Setting Parameters in Configuration Files)


More information about the dev mailing list