java = new File(PathUtil.get(javaHome, "bin", "java"));
} else if (Platform.isWindows()) {
java = new File(PathUtil.get(javaHome, "bin", "java.exe"));
+ } else {
+ throw new IMFatalException(ErrorCode.UNSUPPORTED_PLATFORM);
}
String forceBitOption = "-d" + System.getProperty("sun.arch.data.model");
}
String repo = Config.getInstance().getConfigFile().getRepository();
- if (repo != null & !repo.isEmpty()) {
+ if (repo != null && !repo.isEmpty()) {
commands.add("-repository");
commands.add(repo);
}
String dist = Config.getInstance().getConfigFile().getDistribution();
- if (repo != null & !repo.isEmpty()) {
+ if (repo != null && !repo.isEmpty()) {
commands.add("-distribution");
commands.add(dist);
}
String proxyHost = Config.getInstance().getConfigFile().getProxyHost();
int proxyPort = Config.getInstance().getConfigFile().getProxyPort();
- if (proxyHost != null & !proxyHost.isEmpty()) {
+ if (proxyHost != null && !proxyHost.isEmpty()) {
if (proxyPort > 0) {
commands.add("-proxy");
commands.add(proxyHost + ":" + proxyPort);