Skip to content

[MJAVADOC-755] plexus --> maven-shared-utils - #210

Open
elharo wants to merge 4 commits into
masterfrom
MJAVADOC-755
Open

[MJAVADOC-755] plexus --> maven-shared-utils#210
elharo wants to merge 4 commits into
masterfrom
MJAVADOC-755

Conversation

@elharo

@elharo elharo commented Jul 7, 2023

Copy link
Copy Markdown
Contributor

No description provided.

@elharo
elharo requested a review from michael-o July 7, 2023 11:32
@elharo

elharo commented Jul 7, 2023

Copy link
Copy Markdown
Contributor Author
Error:  Failures: 
Error:    JavadocReportTest.testProxy:943 
Expecting actual:
  " C:\hostedtoolcache\windows\Java_Liberica_jdk\8.0.372-7\x64\jre\..\bin\javadoc.exe -J-Dhttp.proxyHost=127.0.0.1 -J-Dhttp.proxyPort=80 -J-Dhttps.proxyHost=127.0.0.1 -J-Dhttps.proxyPort=80 "-J-Dhttp.nonProxyHosts=\"www.google.com^|*.somewhere.com\"" @options @packages"
to contain:
  " -J-Dhttp.nonProxyHosts="www.google.com^|*.somewhere.com" " 
[INFO] 

@michael-o
michael-o removed their request for review July 10, 2023 20:11
@elharo
elharo marked this pull request as ready for review September 24, 2023 17:30
@elharo

elharo commented Sep 24, 2023

Copy link
Copy Markdown
Contributor Author

Need to verify but looks like a double quote backslash escaping issue on Windows

Expecting actual:
  " C:\hostedtoolcache\windows\Java_Zulu_jdk\8.0.382-5\x64\jre\..\bin\javadoc.exe -J-Dhttp.proxyHost=127.0.0.1 -J-Dhttp.proxyPort=80 -J-Dhttps.proxyHost=127.0.0.1 -J-Dhttps.proxyPort=80 "-J-Dhttp.nonProxyHosts=\"www.google.com^|*.somewhere.com\"" @options @packages"
to contain:
  " -J-Dhttp.nonProxyHosts="www.google.com^|*.somewhere.com"" 

@elharo

elharo commented Sep 24, 2023

Copy link
Copy Markdown
Contributor Author

I assume there's a reason for this escaping on windows. Might be a problem in maven-shared-utils

@michael-o

Copy link
Copy Markdown
Member

I assume there's a reason for this escaping on windows. Might be a problem in maven-shared-utils

It is a mess in both. The stupid cli class uses cmd.exe which is totally unnecessary and Windows additionally needs escaping because of pipe. At some point I have given up until the CLI class uses ProcessBuilder directly.

@elharo

elharo commented Sep 24, 2023

Copy link
Copy Markdown
Contributor Author

Ultimately we shouldn't invoke it through the CLI at all, but the way to not do that is completely different between Java 8 and Java 9+.

https://issues.apache.org/jira/browse/MJAVADOC-756

@elharo

elharo commented Nov 28, 2023

Copy link
Copy Markdown
Contributor Author

I might be wrong about the differences between Java 8 and Java 9+. There are differences but it looks like the ToolProvider API might call the right methods on whichever platform it's running on.

https://issues.apache.org/jira/browse/MJAVADOC-732

@jira-importer

Copy link
Copy Markdown

Resolve #1134

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.

4 participants