Reputation: 71
Does Java have any command-line way of specifying a classpath-relative file from which it will load system properties (similar to -D properties)?
Upvotes: 7
Views: 3070
Reputation: 4681
From Java9, you can use @files option to import a file as command arguments.
@files
See this link.
Upvotes: 2