public class MainJarDependenciesChecker
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
cleanup(java.util.Properties props,
freenet.node.updater.MainJarDependenciesChecker.Deployer deployer,
int build)
Should be called on startup, before any fetches have started.
|
void |
deploy()
Unlike other methods here, this should be called outside the lock.
|
static java.lang.String |
getDependencyVersion(java.io.File currentFile) |
freenet.node.updater.MainJarDependenciesChecker.MainJarDependencies |
handle(java.util.Properties props,
int build)
Parse the Properties file.
|
boolean |
isBroken() |
static boolean |
validFile(java.io.File filename,
byte[] expectedHash,
long size,
boolean executable) |
public freenet.node.updater.MainJarDependenciesChecker.MainJarDependencies handle(java.util.Properties props, int build)
props
- The Properties parsed from the dependencies.properties file.public boolean cleanup(java.util.Properties props, freenet.node.updater.MainJarDependenciesChecker.Deployer deployer, int build)
props
- The dependencies.properties from the running version.public static java.lang.String getDependencyVersion(java.io.File currentFile)
public static boolean validFile(java.io.File filename, byte[] expectedHash, long size, boolean executable)
public void deploy()
public boolean isBroken()