Schnittstelle GradleProject

Alle Superschnittstellen:
BuildableElement, Element, HierarchicalElement, Model, ProjectModel

public interface GradleProject extends HierarchicalElement, BuildableElement, ProjectModel
Represents a Gradle project.
Seit:
1.0-milestone-5
  • Methodendetails

    • getProjectIdentifier

      ProjectIdentifier getProjectIdentifier()
      Returns the identifier for this Gradle project.
      Angegeben von:
      getProjectIdentifier in Schnittstelle ProjectModel
      Seit:
      2.13
    • getTasks

      DomainObjectSet<? extends GradleTask> getTasks()
      Returns the tasks of this project.
      Angegeben von:
      getTasks in Schnittstelle BuildableElement
      Gibt zurück:
      The tasks of this project.
    • getParent

      GradleProject getParent()
      Returns the parent of this element, or null if there is no parent.
      Angegeben von:
      getParent in Schnittstelle HierarchicalElement
      Gibt zurück:
      The parent of this element, or null if there is no parent.
    • getChildren

      DomainObjectSet<? extends GradleProject> getChildren()
      Returns the child elements, or the empty set if there are no child elements.
      Angegeben von:
      getChildren in Schnittstelle HierarchicalElement
      Gibt zurück:
      The child elements, or the empty set if there are no child elements.
    • getPath

      String getPath()
      Returns the path of this project. This is a unique identifier for this project within the build.
      Gibt zurück:
      The path.
    • findByPath

      @Nullable GradleProject findByPath(String path)
      Searches all descendants (children, grand-children, etc.), including self, by given path.
      Gibt zurück:
      Gradle project with matching path or null if not found.
    • getBuildScript

      GradleScript getBuildScript() throws UnsupportedMethodException
      Returns the build script for this project.
      Gibt zurück:
      The build script.
      Löst aus:
      UnsupportedMethodException - For Gradle versions older than 1.8, where this method is not supported.
      Seit:
      1.8
    • getBuildDirectory

      File getBuildDirectory() throws UnsupportedMethodException
      Returns the build directory for this project.
      Gibt zurück:
      The build directory.
      Löst aus:
      UnsupportedMethodException - For Gradle versions older than 2.0, where this method is not supported.
      Seit:
      2.0
    • getProjectDirectory

      File getProjectDirectory() throws UnsupportedMethodException
      Returns the project directory for this project.
      Gibt zurück:
      The project directory.
      Löst aus:
      UnsupportedMethodException - For Gradle versions older than 2.4, where this method is not supported.
      Seit:
      2.4