-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Java 9 multi release jars #61 #76
base: master
Are you sure you want to change the base?
Conversation
- A property for library jar exclusions (libraryJarExclusion)
@@ -753,6 +749,19 @@ public void execute() throws MojoExecutionException, MojoFailureException { | |||
} | |||
} | |||
|
|||
private void addLibraryJar(ArrayList<String> args, ArrayList<File> libraryJars, File file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the method signature we could just use List instead of ArrayList
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private void addLibraryJar(ArrayList<String> args, ArrayList<File> libraryJars, File file) | |
private void addLibraryJar(List<String> args, List<File> libraryJars, File file) |
args.add("-libraryjars"); | ||
args.add(fileToString(file)); | ||
if (libraryJarExclusion != null) { | ||
args.add(libraryJarExclusion); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understood correctly, this exclusion string should be added immediately after the filename without any spaces between them. This would seem to add it as a separate argument for the command.
Fixes #61