-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[MNG-6437] Better support for path and uri in property interpolation #812
Conversation
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.
Yet another problem with URIs is to get a decent string representation URI#toString()
is not suited since it does not encode unsafe characters. Can this address this problem to invoke URI#toASCIIString()
instead?
maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
Outdated
Show resolved
Hide resolved
maven-core/src/main/java/org/apache/maven/plugin/ReflectionValueExtractor.java
Outdated
Show resolved
Hide resolved
maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4Test.java
Outdated
Show resolved
Hide resolved
|
Fwiw, injecting a Also, I just discovered that
In short, there's no need to go through the However, this PR only tackles plugin injection and not model interpolation. The |
As shown by the tests failing on windows, my assumption that |
4a1b6e7
to
569de56
Compare
Let me try to replicate, that is total BS. |
Method method = classMap.findMethod(prefix + methodBase); | ||
if (method != null) { | ||
return method.invoke(value, OBJECT_ARGS); | ||
} |
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.
Shouldn't this be a separate, preceding PR?
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.
No, that's one of the important change to support toXxx
and asXxx
.
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.
I know, but can be logically done before this change, no? But anyway, let's leave this hunk as-is.
@michael-o fancy another look ? |
Well, built your branch and tested on:
It fails in mid-air:
I have tried See:
What am I doing wrong? |
The PR only tackles plugin configuration injection, not model interpolation. |
Darn, then I will retry next week. |
Actually, this is not the problem. The problem is that the maven-help-plugin is using the
|
I will take a good at it again next week, thanks for the hard work @gnodet. |
See #808