puniverse / capsule

Dead-Simple Packaging and Deployment for JVM Apps
http://capsule.io
Eclipse Public License 1.0
1.15k stars 100 forks source link

Repeated JVM command line options are not preserved #117

Open pditommaso opened 7 years ago

pditommaso commented 7 years ago

Java 9 allows the use of the --add-opens command line option multiple times specifying different package names.

However when invoking Capsule with more than one --add-opens option only the last one is preserved in the resulting command line returned by Capsule, breaking the target application.

The error suggests that JVM options are collected by using a Map, a List should be used instead.