Jetty - set system property [duplicate]
问题 This question already has answers here : How to portably read configuration data from a servlet (4 answers) Closed 5 years ago . I run webapp on Jetty. The configuration for the app come from file that lives on the same server where Jetty is running. Inside the app I rely on the system property to obtain path to the file so I can parse it. E.g. final String loc = System.getProperty(FACTORY); Now I can start jetty with D switch to provide $FACTORY on the command line but I rather put it in