Package io.helidon.build.dev
Class ProjectDirectory
- java.lang.Object
-
- io.helidon.build.dev.ProjectDirectory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean()Delete the contents of this directory.static ProjectDirectorycreateProjectDirectory(DirectoryType type, Path path)Returns a new project directory.voiddelete()Delete this directory and all its contents.DirectoryTypedirectoryType()Returns the directory type.booleanequals(Object o)inthashCode()booleanisEmpty()Returns whether or not this directory is empty.Pathpath()Returns the directory path.StringtoString()
-
-
-
Method Detail
-
createProjectDirectory
public static ProjectDirectory createProjectDirectory(DirectoryType type, Path path)
Returns a new project directory.- Parameters:
type- The directory type.path- The directory path.- Returns:
- The project directory.
-
directoryType
public DirectoryType directoryType()
Returns the directory type.- Returns:
- The type.
-
path
public Path path()
Returns the directory path.- Returns:
- The path.
-
clean
public void clean()
Delete the contents of this directory.- Throws:
UncheckedIOException- if an error occurs.
-
delete
public void delete()
Delete this directory and all its contents.- Throws:
UncheckedIOException- if an error occurs.
-
isEmpty
public boolean isEmpty()
Returns whether or not this directory is empty.- Returns:
trueif empty.
-
-