Interface EclipseProject

    • Method Detail

      • getGradleProject

        GradleProject getGradleProject()
        The gradle project that is associated with this project. Typically, a single Eclipse project corresponds to a single gradle project.

        See HasGradleProject

        Specified by:
        getGradleProject in interface HasGradleProject
        Returns:
        associated gradle project
        Since:
        1.0-milestone-5
      • getClasspath

        DomainObjectSet<? extends EclipseExternalDependency> getClasspath()
        Returns the external dependencies which make up the classpath of this project.
        Returns:
        The dependencies. Returns an empty set if the project has no external dependencies.
        Since:
        1.0-milestone-3
      • getProjectNatures

        DomainObjectSet<? extends EclipseProjectNature> getProjectNatures()
                                                                   throws UnsupportedMethodException
        Returns the Eclipse natures configured on the project.

        Some natures are automatically added to the result based on the Gradle plugins applied on the project. For example, if the project applies the 'java' plugin the result will contain the "org.eclipse.jdt.core.javanature" entry. Note, that the exact list of automatically added natures is not part of the API and can vary between Gradle releases.

        The result can be customized via the 'eclipse' plugin configuration.

        Returns:
        The list of Eclipse project natures.
        Throws:
        UnsupportedMethodException - For Gradle versions older than 2.9, where this method is not supported.
        Since:
        2.9
      • getBuildCommands

        DomainObjectSet<? extends EclipseBuildCommand> getBuildCommands()
                                                                 throws UnsupportedMethodException
        Returns the Eclipse build commands configured on the project.

        Some build commands are automatically added to the result based on the Gradle plugins applied on the project. For example, if the project applies the 'java' plugin the result will contain the "org.eclipse.jdt.core.javabuilder" build command. Note, that the exact list of automatically added build commands is not part of the API and can vary between Gradle releases.

        The result can be customized via the 'eclipse' plugin configuration.

        Returns:
        The list of Eclipse build commands.
        Throws:
        UnsupportedMethodException - For Gradle versions older than 2.9, where this method is not supported.
        Since:
        2.9
      • hasAutoBuildTasks

        boolean hasAutoBuildTasks()
        If this method returns true then Eclipse should execute the tasks configured at eclipse.autoBuildTasks every time the auto-build is triggered for the target project.
        Returns:
        whether the project has auto-build tasks configured
        Since:
        5.4
        See Also:
        RunEclipseAutoBuildTasks