org.jvnet.hudson.update_center
Class MavenArtifact

java.lang.Object
  extended by org.jvnet.hudson.update_center.MavenArtifact
Direct Known Subclasses:
HPI, HudsonWar

public class MavenArtifact
extends Object

Artifact from a Maven repository and its metadata.

Author:
Kohsuke Kawaguchi

Field Summary
 org.sonatype.nexus.index.ArtifactInfo artifact
           
 MavenRepository repository
          Where did this plugin come from?
 String version
           
 
Constructor Summary
MavenArtifact(MavenRepository repository, org.sonatype.nexus.index.ArtifactInfo artifact)
           
 
Method Summary
static SimpleDateFormat getDateFormat()
           
 Attributes getManifestAttributes()
           
 long getTimestamp()
           
 Date getTimestampAsDate()
           
 String getTimestampAsString()
           
 URL getURL()
          Where to download from?
 VersionNumber getVersion()
           
 File resolve()
           
 File resolvePOM()
           
 net.sf.json.JSONObject toJSON(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

repository

public final MavenRepository repository
Where did this plugin come from?


artifact

public final org.sonatype.nexus.index.ArtifactInfo artifact

version

public final String version
Constructor Detail

MavenArtifact

public MavenArtifact(MavenRepository repository,
                     org.sonatype.nexus.index.ArtifactInfo artifact)
Method Detail

resolve

public File resolve()
             throws IOException
Throws:
IOException

resolvePOM

public File resolvePOM()
                throws IOException
Throws:
IOException

toJSON

public net.sf.json.JSONObject toJSON(String name)
                              throws IOException
Throws:
IOException

getVersion

public VersionNumber getVersion()

getTimestampAsString

public String getTimestampAsString()
                            throws IOException
Throws:
IOException

getTimestampAsDate

public Date getTimestampAsDate()
                        throws IOException
Throws:
IOException

getDateFormat

public static SimpleDateFormat getDateFormat()

getTimestamp

public long getTimestamp()
                  throws IOException
Throws:
IOException

getManifestAttributes

public Attributes getManifestAttributes()
                                 throws IOException
Throws:
IOException

getURL

public URL getURL()
           throws MalformedURLException
Where to download from?

Throws:
MalformedURLException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2011. All Rights Reserved.