Class DependencyInfo
java.lang.Object
org.apache.maven.plugins.war.util.DependencyInfo
Holds a dependency and packaging information.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDependencyInfo
(org.apache.maven.model.Dependency dependency) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.apache.maven.model.Dependency
Returns the dependency.Returns the target filename of the dependency.int
hashCode()
void
setTargetFileName
(String targetFileName) Sets the target file name.
-
Field Details
-
dependency
private final org.apache.maven.model.Dependency dependency -
targetFileName
-
-
Constructor Details
-
DependencyInfo
public DependencyInfo(org.apache.maven.model.Dependency dependency) Creates a new instance.- Parameters:
dependency
- the dependency
-
-
Method Details
-
getDependency
public org.apache.maven.model.Dependency getDependency()Returns the dependency.- Returns:
- the dependency
-
getTargetFileName
Returns the target filename of the dependency. If no target file name is associated, returnsnull
.- Returns:
- the target file name or
null
-
setTargetFileName
Sets the target file name.- Parameters:
targetFileName
- the target file name
-
equals
-
hashCode
public int hashCode()
-