Package io.helidon.build.devloop
Class ProjectDirectory
java.lang.Object
io.helidon.build.devloop.ProjectDirectory
- Direct Known Subclasses:
BuildRoot
A project directory.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclean()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.Returns the directory type.booleaninthashCode()booleanisEmpty()Returns whether or not this directory is empty.path()Returns the directory path.toString()
-
Method Details
-
createProjectDirectory
Returns a new project directory.- Parameters:
type- The directory type.path- The directory path.- Returns:
- The project directory.
-
directoryType
Returns the directory type.- Returns:
- The type.
-
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.
-
toString
-
equals
-
hashCode
public int hashCode()
-