System.out.println("Installing Tomcat...");
try {
Zip.unzip(getDist().get(Distribution.TOMCAT), System
.getProperty("java.io.tmpdir"));
} catch (IOException e) {
throw new InstallationFailedException(e.getMessage(), e);
}
File f =
new File(System.getProperty("java.io.tmpdir"),
Distribution.TOMCAT_BASENAME);
if (!FileUtils.move(f, getTomcatHome())) {
throw new InstallationFailedException("Move to "
+ getTomcatHome().getAbsolutePath() + " failed.");
}
FedoraHome.setScriptsExecutable(new File(getTomcatHome(), "bin"));
}