Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

[Sprint: 42] XD-2690 - Filter lib files other than .zip and .jar #1442

Closed
wants to merge 1 commit into from
Closed

Conversation

dturanski
Copy link
Contributor

No description provided.


public static final String DOT_JAR = ".jar";

public static final String DOT_ZIP = ".zip";
Copy link
Contributor

Choose a reason for hiding this comment

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

why even accept .zip? We won't add them to the CP currently

Choose a reason for hiding this comment

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

.zip is a legitimate extension for a CP element. See http://docs.oracle.com/javase/7/docs/technotes/tools/windows/classpath.html. I don't see what we could possibly gain by not accepting them.

@ericbottard can you clarify the second part of the comment: org.springframework.xd.module.support.ModuleUtils#createModuleClassLoader(org.springframework.core.io.Resource, java.lang.ClassLoader, boolean) doesn't seem to do any filtering of archives of its own.

Copy link
Contributor

Choose a reason for hiding this comment

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

My bad, I was under the impression we only looked up .jar
So yeah, we shall accept .zip
The more, the merrier...

Choose a reason for hiding this comment

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

OK :) I'll LGTM it, and add it to the merge pipeline.

@sabbyanandan sabbyanandan changed the title XD-2690 - Filter lib files other than .zip and .jar [Sprint: 42] XD-2690 - Filter lib files other than .zip and .jar Feb 5, 2015
@mbogoevici
Copy link

Merged w/97aa52a

@mbogoevici mbogoevici closed this Feb 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants