URL [] urls = new URL[downloads.length];
for (int i=0; i<downloads.length; i++) {
File jarfile = File.createTempFile("jar-T"+System.currentTimeMillis()+"-", ".jar");
urls[i] = jarfile.toURL();
URLRetriever retriever = new URLRetriever(downloads[i]);
try {
retriever.retrieve(jarfile, autoConf.getUsername(), autoConf.getPassword());
} catch (IOException ex) {
getLogger().info("Cannot download "+downloads[i]+" due to: "+ex.getMessage());
continue;
}
}