Does Java have any command-line way of specifying a classpath-relative file from which it will load system properties (similar to -D properties)?
1 Answer
From Java9, you can use @files option to import a file as command arguments.
See this link.
From Java9, you can use @files option to import a file as command arguments.
See this link.
-D?-Dand manually load the properties or use a ResourceBundle. See stackoverflow.com/questions/22835800/…