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:
@@ -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);
|
||||||
@@ -463,6 +448,22 @@ public abstract class Getdown extends Thread
|
|||||||
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
|
||||||
if (Boolean.getBoolean("check_unpacked")) {
|
if (Boolean.getBoolean("check_unpacked")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user