Package org.apache.maven.cling.invoker
Class CWD
java.lang.Object
org.apache.maven.cling.invoker.CWD
A thin wrapper for a
Path that serves as "current working directory" value. Hence, this class
is mutable (as CWD may be changed), but allows transition only to existing directories.-
Method Summary
-
Method Details
-
create
Creates instance out ofPath. -
get
-
resolve
Resolves against current cwd, resulting path is normalized.- Throws:
NullPointerException- ifsegisnull.
-
change
Changes current cwd, if the new path is existing directory.- Throws:
NullPointerException- ifsegisnull.IllegalArgumentException- ifsegleads to non-existent directory.
-