org.jvnet.maven.plugin.antrun
Class ArtifactElement

java.lang.Object
  extended by org.jvnet.maven.plugin.antrun.ArtifactElement

public class ArtifactElement
extends Object

Represents <artifact> element in build.xml

This Java bean is a part of the XML configuration binding via Ant.

Author:
Kohsuke Kawaguchi

Constructor Summary
ArtifactElement()
           
 
Method Summary
 org.apache.maven.artifact.Artifact createArtifact()
          Creates an Artifact from the configured information, by possibly guessing parameters that were missing.
 String getArtifactId()
           
 String getClassifier()
           
 String getGroupId()
           
 String getId()
          Retrurns the ID of this artifact after guessing omitted parameters.
 String getType()
           
 String getVersion()
           
 void setArtifactId(String artifactId)
           
 void setClassifier(String classifier)
           
 void setGroupId(String groupId)
           
 void setType(String type)
           
 void setVersion(String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactElement

public ArtifactElement()
Method Detail

getGroupId

public String getGroupId()

setGroupId

public void setGroupId(String groupId)

getArtifactId

public String getArtifactId()

setArtifactId

public void setArtifactId(String artifactId)

getVersion

public String getVersion()

setVersion

public void setVersion(String version)

getType

public String getType()

setType

public void setType(String type)

getClassifier

public String getClassifier()

setClassifier

public void setClassifier(String classifier)

createArtifact

public org.apache.maven.artifact.Artifact createArtifact()
                                                  throws IOException
Creates an Artifact from the configured information, by possibly guessing parameters that were missing.

Throws:
IOException

getId

public String getId()
             throws IOException
Retrurns the ID of this artifact after guessing omitted parameters. The returned string follows the Artifact.getId() format.

Throws:
IOException


Copyright © 2011. All Rights Reserved.