return downloadWGA(monitor, getWGADownloadURL());
}
public TemporaryFile downloadWGA(IProgressMonitor monitor, String url) throws IllegalStateException, IOException, URISyntaxException {
monitor.setTaskName("Downloading OpenWGA from '" + url + "'");
HttpClient client = new DefaultHttpClient((IProxyService)_proxyServiceTracker.getService(), new URI(url));
GetMethod get = new GetMethod(url);
int result = client.executeMethod(get);
if (result == HttpURLConnection.HTTP_OK) {
long size = get.getResponseContentLength();
TemporaryFile temp = new TemporaryFile("wga.war", new ProgressMonitorInputStream(monitor, "Downloading OpenWGA ", size, get.getResponseBodyAsStream()), getStateLocation().toFile());