Interface Artifact

All Superinterfaces:
ExtendableItem
All Known Implementing Classes:
AbstractArtifact, DefaultArtifact, IvyPublish.PublishArtifact, MDArtifact

public interface Artifact extends ExtendableItem
Representation of a published 'file' in the development environment. An artifact is generally a file that is produced by a project build. This is typically a jar, a war, an ear, a zip, a deb, etc.
  • Method Details

    • getModuleRevisionId

      ModuleRevisionId getModuleRevisionId()
      Returns the resolved module revision id for this artifact
      Returns:
      the resolved module revision id.
    • getPublicationDate

      Date getPublicationDate()
      Returns the resolved publication date for this artifact
      Returns:
      the resolved publication date. Never null.
    • getName

      String getName()
      Return the name of the artifact, generally 'part' of the basename of the file.
      Returns:
      the name of the artifact. Never null.
    • getType

      String getType()
      Returns the type of the artifact, typically 'jar', 'source', 'javadoc', 'debian', ...
      Returns:
      the type of the artifact. Never null.
    • getExt

      String getExt()
      Retrieve the extension of the artifact. The extension is without dot (ie. 'jar' and not '.jar')
      Returns:
      the extension of the artifact. Never null.
    • getUrl

      URL getUrl()
      Returns the url at which this artifact can be found independently of ivy configuration. This can be null (and is usually for standard artifacts)
      Returns:
      url at which this artifact can be found independently of ivy configuration
    • getConfigurations

      String[] getConfigurations()
      Returns the list of configurations where this artifact is associated to.
      Returns:
      the list of configuration this artifact is associated to. Never null.
    • getId

      Return the specific identifier of this artifact.
      Returns:
      the id of the artifact
    • isMetadata

      boolean isMetadata()
      Returns true if this artifact represents a module metadata artifact, false if it's a published artifact
      Returns:
      true if this artifact represents a module metadata artifact, false if it's a published artifact