forked from github/cordova-android
CB-11640: Changing requirements check to ask for Java 8
This commit is contained in:
parent
30325e4f32
commit
47abde2f8d
@ -152,7 +152,9 @@ module.exports.check_java = function() {
|
||||
// javac writes version info to stderr instead of stdout
|
||||
return tryCommand('javac -version', msg, true)
|
||||
.then(function (output) {
|
||||
var match = /javac ((?:\d+\.)+(?:\d+))/i.exec(output);
|
||||
console.log(output);
|
||||
//Let's check for at least Java 8, and keep it future proof so we can support Java 10
|
||||
var match = /javac ((?:1\.)(?:[8-9]\.)(?:\d+))|((?:1\.)(?:[1-9]\d+\.))(?:\d+)/i.exec(output);
|
||||
return match && match[1];
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user