Examples of fireIvyEvent()


Examples of org.apache.ivy.core.event.EventManager.fireIvyEvent()

            DownloadReport dr = new DownloadReport();
            for (int i = 0; i < artifacts.length; i++) {
                final ArtifactDownloadReport adr = new ArtifactDownloadReport(artifacts[i]);
                dr.addArtifactReport(adr);
                if (eventManager != null) {
                    eventManager.fireIvyEvent(new NeedArtifactEvent(this, artifacts[i]));
                }
                ArtifactOrigin origin = cacheManager.getSavedArtifactOrigin(artifacts[i]);
                // if we can use origin file, we just ask ivy for the file in cache, and it will
                // return
                // the original one if possible. If we are not in useOrigin mode, we use the
View Full Code Here

Examples of org.apache.ivy.core.event.EventManager.fireIvyEvent()

                                            + "': 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

Examples of org.apache.ivy.core.event.EventManager.fireIvyEvent()

                        adr.setDownloadStatus(DownloadStatus.FAILED);
                    }
                    checkInterrupted();
                }
                if (eventManager != null) {
                    eventManager.fireIvyEvent(new EndArtifactDownloadEvent(this, artifacts[i], adr,
                            archiveFile));
                }
            }
            return dr;
        } finally {
View Full Code Here

Examples of org.apache.ivy.core.event.EventManager.fireIvyEvent()

        DownloadReport dr = new DownloadReport();
        for (int i = 0; i < artifacts.length; i++) {
          final ArtifactDownloadReport adr = new ArtifactDownloadReport(artifacts[i]);
          dr.addArtifactReport(adr);
          if (eventManager != null) {
            eventManager.fireIvyEvent(new NeedArtifactEvent(this, artifacts[i]));
          }
          ArtifactOrigin origin = cacheManager.getSavedArtifactOrigin(artifacts[i]);
          // if we can use origin file, we just ask ivy for the file in cache, and it will return
          // the original one if possible. If we are not in useOrigin mode, we use the getArchivePath
          // method which always return a path in the actual cache
View Full Code Here

Examples of org.apache.ivy.core.event.EventManager.fireIvyEvent()

                    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

Examples of org.apache.ivy.core.event.EventManager.fireIvyEvent()

              adr.setDownloadStatus(DownloadStatus.FAILED);
            }
            checkInterrupted();
          }
          if (eventManager != null) {
            eventManager.fireIvyEvent(new EndArtifactDownloadEvent(this, artifacts[i], adr, archiveFile));
          }
        }
        return dr;
      } finally {
        IvyContext.getContext().popResolver();
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.