Interface GradleProject

    • Method Detail

      • getParent

        GradleProject getParent()
        Returns the parent of this element, or null if there is no parent.
        Specified by:
        getParent in interface HierarchicalElement
        Returns:
        The parent of this element, or null if there is no parent.
      • getPath

        java.lang.String getPath()
        Returns the path of this project. This is a unique identifier for this project within the build.
        Returns:
        The path.
      • findByPath

        @Nullable
        GradleProject findByPath​(java.lang.String path)
        Searches all descendants (children, grand-children, etc.), including self, by given path.
        Returns:
        Gradle project with matching path or null if not found.
      • getBuildDirectory

        java.io.File getBuildDirectory()
                                throws UnsupportedMethodException
        Returns the build directory for this project.
        Returns:
        The build directory.
        Throws:
        UnsupportedMethodException - For Gradle versions older than 2.0, where this method is not supported.
        Since:
        2.0
      • getProjectDirectory

        java.io.File getProjectDirectory()
                                  throws UnsupportedMethodException
        Returns the project directory for this project.
        Returns:
        The project directory.
        Throws:
        UnsupportedMethodException - For Gradle versions older than 2.4, where this method is not supported.
        Since:
        2.4