|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.toolforge.karma.core.cmd.util.DependencyPath
Represents the path to a dependency. Consists of two parts, a relative part and the part that forms the prefix of this relative part. Together they form the absolute path to the dependency.
Constructor Summary | |
(package private) |
DependencyPath(java.io.File pathPrefix,
java.io.File relativePath)
Create a new DependencyPath |
Method Summary | |
static java.lang.String |
concat(java.util.Set dependencyPaths,
boolean relative,
char separator)
Concatenates all DependencyPaths in the given set to a separated String. |
boolean |
exists()
Does the dependency exist? |
java.io.File |
getFullPath()
Retrieve the full absolute path to the dependency by concatenating the prefix and the relative path. |
java.io.File |
getPathPrefix()
|
java.io.File |
getRelativePath()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
DependencyPath(java.io.File pathPrefix, java.io.File relativePath)
pathPrefix
- Prefix for the dependency path.relativePath
- Relative path to the dependency.Method Detail |
public java.io.File getPathPrefix()
public java.io.File getRelativePath()
public java.io.File getFullPath()
public boolean exists()
public static java.lang.String concat(java.util.Set dependencyPaths, boolean relative, char separator)
dependencyPaths
- Set of DependencyPath Objects.relative
- Use relative paths?separator
- Separator char to use.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |