Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

liamsharp
Copy link

@liamsharp liamsharp commented Jul 20, 2018

  • A property for library jar exclusions (libraryJarExclusion)

Fixes #61

- 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)
Copy link
Collaborator

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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);
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Java 9 multi release jars
2 participants