breautek commented on issue #1203:
URL:
https://github.com/apache/cordova-android/issues/1203#issuecomment-819608485
> An **untested** fix would probably be the changing line 46 of the file
`java.js` with the following (or similar):
>
> ```
> const javacOutput = (await execa('javac', ['-version'], { all:
true })).all;
> const match = /javac\s+([\d.]+)/i.exec(javacOutput);
> if (match && match.length > 0) {
> version = match[1];
> } else {
> version = javacOutput;
> }
> ```
I'll support a PR that adds a test case to
https://github.com/apache/cordova-android/blob/master/spec/unit/java.spec.js
and your proposed solution.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]