Class DependencyInfo
- java.lang.Object
-
- org.apache.maven.plugins.war.util.DependencyInfo
-
public class DependencyInfo extends java.lang.Object
Holds a dependency and packaging information.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.model.Dependency
dependency
private java.lang.String
targetFileName
-
Constructor Summary
Constructors Constructor Description DependencyInfo(org.apache.maven.model.Dependency dependency)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
org.apache.maven.model.Dependency
getDependency()
Returns the dependency.java.lang.String
getTargetFileName()
Returns the target filename of the dependency.int
hashCode()
void
setTargetFileName(java.lang.String targetFileName)
Sets the target file name.
-
-
-
Method Detail
-
getDependency
public org.apache.maven.model.Dependency getDependency()
Returns the dependency.- Returns:
- the dependency
-
getTargetFileName
public java.lang.String getTargetFileName()
Returns the target filename of the dependency. If no target file name is associated, returnsnull
.- Returns:
- the target file name or
null
-
setTargetFileName
public void setTargetFileName(java.lang.String targetFileName)
Sets the target file name.- Parameters:
targetFileName
- the target file name
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-