Merge pull request #169 from pb00068/java_vm_update2

update Java VM: Checking Java version after getdown.txt has been re-fetched.
This commit is contained in:
Michael Bayne
2018-11-30 11:34:18 -08:00
committed by GitHub
@@ -400,21 +400,6 @@ public abstract class Getdown extends Thread
//setStep(Step.START); //setStep(Step.START);
for (int ii = 0; ii < MAX_LOOPS; ii++) { for (int ii = 0; ii < MAX_LOOPS; ii++) {
// if we aren't running in a JVM that meets our version requirements, either
// complain or attempt to download and install the appropriate version
if (!_app.haveValidJavaVersion()) {
// download and install the necessary version of java, then loop back again and
// reverify everything; if we can't download java; we'll throw an exception
log.info("Attempting to update Java VM...");
setStep(Step.UPDATE_JAVA);
_enableTracking = true; // always track JVM downloads
try {
updateJava();
} finally {
_enableTracking = false;
}
continue;
}
// make sure we have the desired version and that the metadata files are valid... // make sure we have the desired version and that the metadata files are valid...
setStep(Step.VERIFY_METADATA); setStep(Step.VERIFY_METADATA);
@@ -462,6 +447,22 @@ public abstract class Getdown extends Thread
// now we'll loop back and try it all again // now we'll loop back and try it all again
continue; continue;
} }
// if we aren't running in a JVM that meets our version requirements, either
// complain or attempt to download and install the appropriate version
if (!_app.haveValidJavaVersion()) {
// download and install the necessary version of java, then loop back again and
// reverify everything; if we can't download java; we'll throw an exception
log.info("Attempting to update Java VM...");
setStep(Step.UPDATE_JAVA);
_enableTracking = true; // always track JVM downloads
try {
updateJava();
} finally {
_enableTracking = false;
}
continue;
}
// if we were downloaded in full from another service (say, Steam), we may // if we were downloaded in full from another service (say, Steam), we may
// not have unpacked all of our resources yet // not have unpacked all of our resources yet