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

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Jul 7, 2023

No description provided.

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

elharo commented Jul 7, 2023

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
Copy link
Contributor Author

elharo commented Sep 24, 2023

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
Copy link
Contributor Author

elharo commented Sep 24, 2023

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

@michael-o
Copy link
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
Copy link
Contributor Author

elharo commented Sep 24, 2023

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
Copy link
Contributor Author

elharo commented Nov 28, 2023

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

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.

3 participants