Eric
Eric

Reputation: 71

Java command line to specify system properties file

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

Answers (1)

Dean Xu
Dean Xu

Reputation: 4681

From Java9, you can use @files option to import a file as command arguments.

See this link.

Upvotes: 2

Related Questions