api / org.gradle.tooling.model.eclipse / EclipseProject

EclipseProject

interface EclipseProject : HierarchicalEclipseProject

The complete model of an Eclipse project.

Note that the names of Eclipse projects are unique, and can be used as an identifier for the project.

Since
1.0-milestone-3

Functions

getBuildCommands

abstract fun getBuildCommands(): DomainObjectSet<out EclipseBuildCommand>

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.

getChildren

abstract fun getChildren(): DomainObjectSet<out EclipseProject>

{@inheritDoc}

getClasspath

abstract fun getClasspath(): DomainObjectSet<out EclipseExternalDependency>

Returns the external dependencies which make up the classpath of this project.

getClasspathContainers

abstract fun getClasspathContainers(): DomainObjectSet<out EclipseClasspathContainer>

Returns the Eclipse classpath containers defined on the project.

getGradleProject

abstract fun getGradleProject(): GradleProject

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

See HasGradleProject

getJavaSourceSettings

abstract fun getJavaSourceSettings(): EclipseJavaSourceSettings

Returns the Java source settings for this project.

getOutputLocation

abstract fun getOutputLocation(): EclipseOutputLocation

Returns the output location of this project.

getParent

abstract fun getParent(): EclipseProject

{@inheritDoc}

getProjectNatures

abstract fun getProjectNatures(): DomainObjectSet<out EclipseProjectNature>

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.

Inherited Functions

getLinkedResources

abstract fun getLinkedResources(): DomainObjectSet<out EclipseLinkedResource>

Returns the linked resources for this project.

getProjectDependencies

abstract fun getProjectDependencies(): DomainObjectSet<out EclipseProjectDependency>

Returns the project dependencies for this project.

getProjectDirectory

abstract fun getProjectDirectory(): File

Returns the project directory for this project.

getSourceDirectories

abstract fun getSourceDirectories(): DomainObjectSet<out EclipseSourceDirectory>

Returns the source directories for this project.