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 java.lang.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?
 java.lang.String version
           
 
Constructor Summary
MavenArtifact(MavenRepository repository, org.sonatype.nexus.index.ArtifactInfo artifact)
           
 
Method Summary
static java.text.SimpleDateFormat getDateFormat()
           
 java.util.jar.Attributes getManifestAttributes()
           
 long getTimestamp()
           
 java.util.Date getTimestampAsDate()
           
 java.lang.String getTimestampAsString()
           
 java.net.URL getURL()
          Where to download from?
 VersionNumber getVersion()
           
 java.io.File resolve()
           
 java.io.File resolvePOM()
           
 net.sf.json.JSONObject toJSON(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 java.lang.String version
Constructor Detail

MavenArtifact

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

resolve

public java.io.File resolve()
                     throws java.io.IOException
Throws:
java.io.IOException

resolvePOM

public java.io.File resolvePOM()
                        throws java.io.IOException
Throws:
java.io.IOException

toJSON

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

getVersion

public VersionNumber getVersion()

getTimestampAsString

public java.lang.String getTimestampAsString()
                                      throws java.io.IOException
Throws:
java.io.IOException

getTimestampAsDate

public java.util.Date getTimestampAsDate()
                                  throws java.io.IOException
Throws:
java.io.IOException

getDateFormat

public static java.text.SimpleDateFormat getDateFormat()

getTimestamp

public long getTimestamp()
                  throws java.io.IOException
Throws:
java.io.IOException

getManifestAttributes

public java.util.jar.Attributes getManifestAttributes()
                                               throws java.io.IOException
Throws:
java.io.IOException

getURL

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

Throws:
java.net.MalformedURLException


Copyright © 2010. All Rights Reserved.