Class ProjectDirectory

  • Direct Known Subclasses:
    BuildRoot

    public class ProjectDirectory
    extends Object
    A project directory.
    • 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:
        true if empty.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object