org.sonar.server.mavendeployer
Class Artifact

java.lang.Object
  extended by org.sonar.server.mavendeployer.Artifact
Direct Known Subclasses:
Mojo

public class Artifact
extends Object


Field Summary
static String BASE_GROUP_ID
           
protected  File jar
           
protected  String version
           
 
Constructor Summary
Artifact(String groupId, String artifactId, String version, String packaging, File jar)
           
 
Method Summary
protected  void copyTo(File dir)
           
protected  File createDir(File rootDir)
           
 void deployTo(File rootDir)
           
 boolean equals(Object o)
           
 String getArtifactId()
           
protected  String getArtifactName()
           
 String getGroupId()
           
 String getMetadata()
           
 String getPom()
           
protected  String getTemplatePath()
           
 String getVersion()
           
 String getXmlDefinition()
           
 int hashCode()
           
protected  void saveMetadata(File dir)
           
 String toString()
           
protected  String transformFromTemplatePath(String templatePath)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BASE_GROUP_ID

public static final String BASE_GROUP_ID
See Also:
Constant Field Values

version

protected String version

jar

protected File jar
Constructor Detail

Artifact

public Artifact(String groupId,
                String artifactId,
                String version,
                String packaging,
                File jar)
Method Detail

deployTo

public void deployTo(File rootDir)
              throws IOException
Throws:
IOException

createDir

protected File createDir(File rootDir)
                  throws IOException
Throws:
IOException

getArtifactName

protected String getArtifactName()

getGroupId

public String getGroupId()

getArtifactId

public String getArtifactId()

getVersion

public String getVersion()

copyTo

protected void copyTo(File dir)
               throws IOException
Throws:
IOException

getPom

public String getPom()
              throws IOException
Throws:
IOException

getTemplatePath

protected String getTemplatePath()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getMetadata

public String getMetadata()
                   throws IOException
Throws:
IOException

saveMetadata

protected void saveMetadata(File dir)
                     throws IOException
Throws:
IOException

transformFromTemplatePath

protected final String transformFromTemplatePath(String templatePath)
                                          throws IOException
Throws:
IOException

getXmlDefinition

public String getXmlDefinition()
                        throws IOException
Throws:
IOException


Copyright © 2009-2011 SonarSource. All Rights Reserved.