-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[MNG-8729] Use correct outputStream
destination; request
instead of path
in DefaultPluginXmlFactory#write
#2312
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
Conversation
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPluginXmlFactory.java
Outdated
Show resolved
Hide resolved
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPluginXmlFactory.java
Outdated
Show resolved
Hide resolved
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPluginXmlFactory.java
Outdated
Show resolved
Hide resolved
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPluginXmlFactory.java
Outdated
Show resolved
Hide resolved
waiting for enabler |
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultModelXmlFactory.java
Outdated
Show resolved
Hide resolved
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPluginXmlFactory.java
Outdated
Show resolved
Hide resolved
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPluginXmlFactory.java
Outdated
Show resolved
Hide resolved
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPluginXmlFactory.java
Outdated
Show resolved
Hide resolved
* @throws XmlReaderException if an error occurs during the parsing | ||
* @see #toXmlString(Object) | ||
*/ | ||
public static PluginDescriptor fromXml(@Nonnull String xml) throws XmlReaderException { |
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.
do we need this, as seems unused?
OutputStream outputStream = request.getOutputStream(); | ||
Writer writer = request.getWriter(); | ||
if (writer == null && outputStream == null && path == null) { | ||
throw new IllegalArgumentException("writer, outputStream or path must be non null"); |
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.
how you like flow of code now? With proper dedicated software design the architecture kick in taking over story telling. Orchestrating dedicated concerns. @elharo
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPluginXmlFactory.java
Show resolved
Hide resolved
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.
The point of this PR is to fix the call with the output stream. Please rename it accordingly.
stream
in DefaultPluginXmlFactory#write
os
use correct outputStream
destination; request
instead of path
in DefaultPluginXmlFactory#write
os
use correct outputStream
destination; request
instead of path
in DefaultPluginXmlFactory#write
outputStream
destination; request
instead of path
in DefaultPluginXmlFactory#write
yes, updated. |
rdy. lets hope windows-ci make is this time. |
outputStream
destination; request
instead of path
in DefaultPluginXmlFactory#write
outputStream
destination; request
instead of path
in DefaultPluginXmlFactory#write
outputStream
destination; request
instead of path
in DefaultPluginXmlFactory#write
outputStream
destination; request
instead of path
in DefaultPluginXmlFactory#write
The UTs are failing on windows |
yes thx. items: Error: DefaultPluginXmlFactoryReadWriteTest.readFromUrlParsesPluginDescriptorCorrectly � JUnit Failed to close extension context Error: org.apache.maven.impl.DefaultPluginXmlFactoryReadWriteTest.readFromUrlParsesPluginDescriptorCorrectly -- Time elapsed: 0.016 s <<< ERROR! |
|
… DefaultPluginXmlFactory#write
disabled failing test. found then other disabled and removed that one. Lets see. |
We need to fix maven/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPluginXmlFactory.java Lines 55 to 56 in 717b959
|
what to be done, except of giving dedication? |
merci |
…ath in DefaultPluginXmlFactory#write (apache#2312) Co-authored-by: Vincent Potucek <vpotucek@me.com>
JIRA issue: MNG-8729
follow up of:
stream
inDefaultPluginXmlFactory#write
#2303finally 100