Examples of download()


Examples of org.mevenide.idea.repository.PomRepoManager.download()

        public void run() {
            error = null;
            try {
                final PomRepoManager mgr = PomRepoManager.getInstance(problem.getProject());
                mgr.download(problem.getPomUrl(), problem.getArtifact());
            }
            catch (Exception e) {
                error = e;
            }
        }
View Full Code Here

Examples of org.mevenide.idea.repository.PomRepoManager.download()

        final Runnable downloader = new Runnable() {
            public void run() {
                for (RepoPathElement element : pathElements) {
                    try {
                        //TODO: show returned VirtualFile(s) in Results pane
                        mgr.download(repoUrl, element);
                    }
                    catch (ArtifactNotFoundException e) {
                        //TODO: accumulate errors and display once
                        UIUtils.showError(project, e);
                    }
View Full Code Here

Examples of org.moxie.Repository.download()

  public void testRedirects() throws Exception {
    // Eclipse.org redirects http:// requests to https://
    Solver solver = getSolver();
    Repository r = new Repository("EclipseSnapshots", "http://repo.eclipse.org/content/groups/releases");
    Dependency dep = new Dependency("org.eclipse.jgit:org.eclipse.jgit:3.1.0.201310021548-r");
    File file = r.download(solver, dep, dep.extension);
    assertTrue(file.exists());
  }

}
View Full Code Here

Examples of org.netbeans.modules.php.wordpress.commands.WordPressCli.download()

                    params.add(String.format(WordPressCli.VERSION_PARAM, version));
                }

                // run
                WordPressCli wpCli = WordPressCli.getDefault(false);
                Future<Integer> result = wpCli.download(pm, params);
                if (result != null) {
                    result.get();
                }
            } catch (InvalidPhpExecutableException ex) {
                throw new ExtendingException(ex.getLocalizedMessage());
View Full Code Here

Examples of org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask.download()

            ProgressMonitor monitor = null;
            if (Main.pref.getBoolean("plugin.continuos_download.quiet_download", false)) {
                monitor = NullProgressMonitor.INSTANCE;
            }

            Future<?> future = task.download(false, bbox, monitor);
            DownloadPlugin.worker.execute(new PostDownloadHandler(task, future));
        }
    }

    private AbstractDownloadTask getDownloadTask(Class<?> klass) {
View Full Code Here

Examples of org.openstreetmap.josm.actions.downloadtasks.DownloadGpsTask.download()

                Future<?> future = task.download(dialog.isNewLayerRequired(), area, null);
                Main.worker.submit(new PostDownloadHandler(task, future));
            }
            if (dialog.isDownloadGpxData()) {
                DownloadGpsTask task = new DownloadGpsTask();
                Future<?> future = task.download(dialog.isNewLayerRequired(),area, null);
                Main.worker.submit(new PostDownloadHandler(task, future));
            }
        }
    }
}
View Full Code Here

Examples of org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask.download()

                        }
                    }
                    if (toDownload != null && toDownload.isEmpty()) {
                        Main.info("RemoteControl: no download necessary");
                    } else {
                        Future<?> future = osmTask.download(newLayer, new Bounds(minlat,minlon,maxlat,maxlon), null /* let the task manage the progress monitor */);
                        Main.worker.submit(new PostDownloadHandler(osmTask, future));
                    }
                }
            }
        } catch (Exception ex) {
View Full Code Here

Examples of org.openstreetmap.josm.actions.downloadtasks.DownloadTask.download()

                        }
                    }
                    if (toDownload != null && toDownload.isEmpty()) {
                        Main.info("RemoteControl: no download necessary");
                    } else {
                        Future<?> future = osmTask.download(newLayer, new Bounds(minlat,minlon,maxlat,maxlon), null /* let the task manage the progress monitor */);
                        Main.worker.submit(new PostDownloadHandler(osmTask, future));
                    }
                }
            }
        } catch (Exception ex) {
View Full Code Here

Examples of org.rhq.enterprise.agent.AgentUpdateDownload.download()

            }

            case 'o': {
                try {
                    AgentUpdateDownload aud = new AgentUpdateDownload(agent);
                    aud.download();
                    aud.validate();
                    out.println(MSG.getMsg(AgentI18NResourceKeys.UPDATE_DOWNLOADED, aud.getAgentUpdateBinaryFile()));
                } catch (Exception e) {
                    out.println(MSG.getMsg(AgentI18NResourceKeys.UPDATE_DOWNLOAD_FAILED, ThrowableUtil
                        .getAllMessages(e)));
View Full Code Here

Examples of org.rioproject.impl.util.DownloadManager.download()

            artifact.setLocation(archive.toExternalForm());
            artifact.setInstallRoot(dirName);
            artifact.setUnarchive(true);
            DownloadManager downloadMgr =
                new DownloadManager(FileUtils.getFilePath(installDir), artifact);
            DownloadRecord record = downloadMgr.download();
            return(record);
        } else {
            throw new IOException("Installation must be a .jar or an .oar");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.