org.jvnet.hudson.update_center
Class MavenArtifact
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
MavenArtifact
public MavenArtifact(MavenRepository repository,
org.sonatype.nexus.index.ArtifactInfo artifact)
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.