|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.mojo.webstart.JarResource
public class JarResource
This class represents a <jarResource> configuration element from the pom.xml file. It identifies an artifact that is to be processed by the plugin for inclusion in the JNLP bundle.
Constructor Summary | |
---|---|
JarResource()
Creates a new uninitialized JarResource . |
|
JarResource(org.apache.maven.artifact.Artifact artifact)
Creates a new JarResource that wraps the given artifact. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Returns true if the given object is a JarResource and has the same combination of groupId , artifactId ,
version and classifier . |
org.apache.maven.artifact.Artifact |
getArtifact()
Returns the underlying artifact that this instance represents. |
String |
getArtifactId()
Returns the value of the artifactId field. |
String |
getClassifier()
Returns the value of the classifier field. |
String |
getGroupId()
Returns the value of the groupId field. |
String |
getHrefValue()
Returns the value that should be output for this jar in the href attribute of the jar resource element in the generated JNLP file. |
String |
getMainClass()
Returns the fully qualified class name of the JNLP application's 'main' class but only if it is contained in the jar represented by this instance. |
String |
getVersion()
Returns the value of the version field. |
int |
hashCode()
|
boolean |
isIncludeInJnlp()
Returns the flag that indicates whether or not this resource should be included in the generated JNLP file. |
boolean |
isOutputJarVersion()
Returns the flag that indicates whether or not the jar resource element in the generated JNLP file should include a version attribute. |
void |
setArtifact(org.apache.maven.artifact.Artifact artifact)
Sets the underlying artifact that this instance represents. |
protected void |
setHrefValue(String hrefValue)
Sets the value that should be output for this jar in the href attribute of the jar resource element in the generated JNLP file. |
protected void |
setOutputJarVersion(boolean outputJarVersion)
Returns the flag that indicates whether or not the jar resource element in the generated JNLP file should include a version attribute. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JarResource()
JarResource
.
public JarResource(org.apache.maven.artifact.Artifact artifact)
JarResource
that wraps the given artifact.
artifact
- The artifact that this instance represents.
IllegalArgumentException
- if artifact
is null.Method Detail |
---|
public boolean equals(Object obj)
groupId
, artifactId
,
version
and classifier
.
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getArtifactId()
public String getClassifier()
public String getGroupId()
public String getVersion()
public String getMainClass()
protected void setOutputJarVersion(boolean outputJarVersion)
outputJarVersion
- public boolean isOutputJarVersion()
public org.apache.maven.artifact.Artifact getArtifact()
public void setArtifact(org.apache.maven.artifact.Artifact artifact)
artifact
-
IllegalArgumentException
- if artifact
is null.protected void setHrefValue(String hrefValue)
hrefValue
- public String getHrefValue()
public boolean isIncludeInJnlp()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |