String url = "http://jdbc.postgresql.org/download/postgresql-9.1-903.jdbc4.jar";
File basePath = template.getInstallDir();
File zipFile = new File(basePath, "postgresql-9.1-903.jdbc4.jar");
DownloadFileByHash download = parent.addChild(DownloadFileByHash.class);
download.setUrl(url);
download.hash = new Md5Hash("3222f2e4f133e8d1a76e9ba76463f8f5");
download.filePath = zipFile;
// Symlinks avoid multiple versions
parent.addChild(ManagedSymlink.build(new File(extDir, "postgresql.jar"), zipFile));
}
{
String url = "http://repo1.maven.org/maven2/commons-pool/commons-pool/1.6/commons-pool-1.6.jar";
File basePath = template.getInstallDir();
File zipFile = new File(basePath, "commons-pool-1.6.jar");
DownloadFileByHash download = parent.addChild(DownloadFileByHash.class);
download.setUrl(url);
download.hash = new Md5Hash("5ca02245c829422176d23fa530e919cc");
download.filePath = zipFile;
// Symlinks avoid multiple versions
parent.addChild(ManagedSymlink.build(new File(extDir, "commons-pool.jar"), zipFile));
}
{
String url = "http://repo1.maven.org/maven2/commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.jar";
File basePath = template.getInstallDir();
File zipFile = new File(basePath, "commons-dbcp-1.4.jar");
DownloadFileByHash download = parent.addChild(DownloadFileByHash.class);
download.setUrl(url);
download.hash = new Md5Hash("b004158fab904f37f5831860898b3cd9");
download.filePath = zipFile;
// Symlinks avoid multiple versions
parent.addChild(ManagedSymlink.build(new File(extDir, "commons-dbcp.jar"), zipFile));
}
{
String url = "http://downloads.bouncycastle.org/java/bcprov-jdk15on-147.jar";
File basePath = template.getInstallDir();
File dest = new File(basePath, "bcprov-jdk15on-147.jar");
DownloadFileByHash download = parent.addChild(DownloadFileByHash.class);
download.setUrl(url);
download.hash = new Md5Hash("7749dd7eca4403fb968ddc484263736a");
download.filePath = dest;
// Symlinks avoid multiple versions
parent.addChild(ManagedSymlink.build(new File(extDir, "bcprov.jar"), dest));