Package org.apache.ivy.core.event.download

Examples of org.apache.ivy.core.event.download.StartArtifactDownloadEvent


                    Message.verbose("downloading " + rres.getResource() + " ...");
                } else {
                    Message.info("downloading " + rres.getResource() + " ...");
                }
                if (eventManager != null) {
                    eventManager.fireIvyEvent(new StartArtifactDownloadEvent(AbstractResolver.this,
                            artifact, origin));
                }
            }

            public void endArtifactDownload(RepositoryCacheManager cache, Artifact artifact,
View Full Code Here


                workPerArtifact = downloadStep / artifacts.length;
            } else {
                monitor.worked(downloadStep);
            }
        } else if (event instanceof StartArtifactDownloadEvent) {
            StartArtifactDownloadEvent evt = (StartArtifactDownloadEvent) event;
            monitor.subTask("downloading " + evt.getArtifact());
        } else if (event instanceof EndArtifactDownloadEvent) {
            monitor.worked(workPerArtifact - currentProgress);
            currentProgress = 0;
            monitor.subTask(" ");
        } else if (event instanceof StartResolveDependencyEvent) {
View Full Code Here

            Artifact[] artifacts = pde.getArtifacts();
            if (artifacts.length > 0) {
                _workPerArtifact = 1000 / artifacts.length;
            }
        } else if (event instanceof StartArtifactDownloadEvent) {
            StartArtifactDownloadEvent evt = (StartArtifactDownloadEvent) event;
            _monitor.setTaskName("downloading " + evt.getArtifact());
            if (_dlmonitor != null) {
                _dlmonitor.done();
            }
            _dlmonitor = new SubProgressMonitor(_monitor, _workPerArtifact);
        } else if (event instanceof EndArtifactDownloadEvent) {
View Full Code Here

                } else {
                    Message.info("downloading " + rres.getResource() + " ...");
                }
                if (eventManager != null) {
                    eventManager.fireIvyEvent(
                        new StartArtifactDownloadEvent(
                            AbstractResolver.this, artifact, origin));
                }           
            }
            public void endArtifactDownload(
                    RepositoryCacheManager cache, Artifact artifact,
View Full Code Here

                } else {
                    Message.info("downloading " + rres.getResource() + " ...");
                }
                if (eventManager != null) {
                    eventManager.fireIvyEvent(
                        new StartArtifactDownloadEvent(
                            AbstractResolver.this, artifact, origin));
                }           
            }
            public void endArtifactDownload(
                    RepositoryCacheManager cache, Artifact artifact,
View Full Code Here

            Artifact[] artifacts = pde.getArtifacts();
            if (artifacts.length > 0) {
                workPerArtifact = MONITOR_LENGTH / artifacts.length;
            }
        } else if (event instanceof StartArtifactDownloadEvent) {
            StartArtifactDownloadEvent evt = (StartArtifactDownloadEvent) event;
            monitor.setTaskName("downloading " + evt.getArtifact());
            if (dlmonitor != null) {
                dlmonitor.done();
            }
            dlmonitor = new SubProgressMonitor(monitor, workPerArtifact);
        } else if (event instanceof EndArtifactDownloadEvent) {
View Full Code Here

                                            + "': pointing artifacts to ivy cache is forbidden !");
                                    return null;
                                }
                                Message.info("downloading " + artifactRef.getResource() + " ...");
                                if (eventManager != null) {
                                    eventManager.fireIvyEvent(new StartArtifactDownloadEvent(this,
                                            artifacts[i], origin));
                                }

                                File tmp = cacheManager.getArchiveFileInCache(new DefaultArtifact(
                                        artifacts[i].getModuleRevisionId(), artifacts[i]
View Full Code Here

                    Message.error("invalid configuration for resolver '"+getName()+"': pointing artifacts to ivy cache is forbidden !");
                    return null;
                  }
                  Message.info("downloading "+artifactRef.getResource()+" ...");
                  if (eventManager != null) {
                    eventManager.fireIvyEvent(new StartArtifactDownloadEvent(this, artifacts[i], origin));
                  }

                  File tmp = cacheManager.getArchiveFileInCache(
                      new DefaultArtifact(
                          artifacts[i].getModuleRevisionId(),
View Full Code Here

                } else {
                    Message.info("downloading " + rres.getResource() + " ...");
                }
                if (eventManager != null) {
                    eventManager.fireIvyEvent(
                        new StartArtifactDownloadEvent(
                            AbstractResolver.this, artifact, origin));
                }           
            }
            public void endArtifactDownload(
                    RepositoryCacheManager cache, Artifact artifact,
View Full Code Here

            Artifact[] artifacts = pde.getArtifacts();
            if (artifacts.length > 0) {
                workPerArtifact = MONITOR_LENGTH / artifacts.length;
            }
        } else if (event instanceof StartArtifactDownloadEvent) {
            StartArtifactDownloadEvent evt = (StartArtifactDownloadEvent) event;
            monitor.setTaskName("downloading " + evt.getArtifact());
            if (dlmonitor != null) {
                dlmonitor.done();
            }
            dlmonitor = new SubProgressMonitor(monitor, workPerArtifact);
        } else if (event instanceof EndArtifactDownloadEvent) {
View Full Code Here

TOP

Related Classes of org.apache.ivy.core.event.download.StartArtifactDownloadEvent

Copyright © 2018 www.massapicom. 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.