Class ProjectDirectory

java.lang.Object
io.helidon.build.devloop.ProjectDirectory
Direct Known Subclasses:
BuildRoot

public class ProjectDirectory extends Object
A project directory.
  • Method Details

    • 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:
      true if empty.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object