# 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
Link copied to clipboard
abstract fun getBuildCommands(): DomainObjectSet<out EclipseBuildCommand>
Returns the Eclipse build commands configured on the project.
getChildren
Link copied to clipboard
abstract fun getChildren(): DomainObjectSet<out HierarchicalElement>
Returns the child elements, or the empty set if there are no child elements.
abstract fun getChildren(): DomainObjectSet<out EclipseProject>
getClasspath
Link copied to clipboard
abstract fun getClasspath(): DomainObjectSet<out EclipseExternalDependency>
Returns the external dependencies which make up the classpath of this project.
getClasspathContainers
Link copied to clipboard
abstract fun getClasspathContainers(): DomainObjectSet<out EclipseClasspathContainer>
Returns the Eclipse classpath containers defined on the project.
getDescription
Link copied to clipboard
@Nullable
abstract fun getDescription(): @Nullable String
Returns the description of the element, or `null` if it has no description.
getGradleProject
Link copied to clipboard
abstract fun getGradleProject(): GradleProject
The gradle project that is associated with this project.
getJavaSourceSettings
Link copied to clipboard
@Nullable
abstract fun getJavaSourceSettings(): @Nullable EclipseJavaSourceSettings
Returns the Java source settings for this project.
getLinkedResources
Link copied to clipboard
abstract fun getLinkedResources(): DomainObjectSet<out EclipseLinkedResource>
Returns the linked resources for this project.
getName
Link copied to clipboard
abstract fun getName(): String
Returns the name of the element.
getOutputLocation
Link copied to clipboard
abstract fun getOutputLocation(): EclipseOutputLocation
Returns the output location of this project.
getParent
Link copied to clipboard
@Nullable
abstract fun getParent(): @Nullable HierarchicalElement
Returns the parent of this element, or `null` if there is no parent.
abstract fun getParent(): EclipseProject
getProjectDependencies
Link copied to clipboard
abstract fun getProjectDependencies(): DomainObjectSet<out EclipseProjectDependency>
Returns the project dependencies for this project.
getProjectDirectory
Link copied to clipboard
abstract fun getProjectDirectory(): File
Returns the project directory for this project.
getProjectIdentifier
Link copied to clipboard
abstract fun getProjectIdentifier(): ProjectIdentifier
Returns the identifier for the project that this model is associated with.
getProjectNatures
Link copied to clipboard
abstract fun getProjectNatures(): DomainObjectSet<out EclipseProjectNature>
Returns the Eclipse natures configured on the project.
getSourceDirectories
Link copied to clipboard
abstract fun getSourceDirectories(): DomainObjectSet<out EclipseSourceDirectory>
Returns the source directories for this project.
hasAutoBuildTasks
Link copied to clipboard
abstract fun hasAutoBuildTasks(): Boolean
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.