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

SHRINKWRAP-288 - added loading file from stream in jar #5

Closed

Conversation

joserodolfofreitas
Copy link
Contributor

I've added before the possibility to add a file in classpath.Now I completed the feature adding the possibiltiy to load a file from inside a jar.

classpath.Now I completed the feature adding the possibiltiy to load a
file from inside a jar.
@@ -125,23 +130,16 @@ public class MavenBuilderImpl implements MavenDependencyResolverInternal
@Override
public MavenDependencyResolver configureFrom(String path)
{
path = resolvePathByQualifier(path);
Validate.isReadable(path, "Path to the settings.xml ('" + path + "')must be defined and accessible");
Copy link
Member

Choose a reason for hiding this comment

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

This clutters the real path user specified, making the exception message unclear.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, you're right, specially if the path is resolved for "classpath".
we can attribute the resolvedPath to a new String. wdyt?

@kpiwko
Copy link
Member

kpiwko commented Sep 5, 2011

Pushed upstream as SHRINKWRAP-323. Thanks!

08f0dd3

@kpiwko kpiwko closed this Sep 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants