1 7 package fr.jayasoft.ivy.event.download; 8 9 import fr.jayasoft.ivy.Artifact; 10 import fr.jayasoft.ivy.Ivy; 11 import fr.jayasoft.ivy.event.IvyEvent; 12 13 public abstract class DownloadEvent extends IvyEvent { 14 private Artifact _artifact; 15 16 public DownloadEvent(Ivy source, String name, Artifact artifact) { 17 super(source, name); 18 _artifact = artifact; 19 addArtifactAttributes(_artifact); 20 } 21 22 protected void addArtifactAttributes(Artifact artifact) { 23 addMridAttributes(artifact.getModuleRevisionId()); 24 addAttributes(artifact.getAttributes()); 25 } 26 27 public Artifact getArtifact() { 28 return _artifact; 29 } 30 31 32 } 33 | Popular Tags |