public interface EclipseProject extends HierarchicalEclipseProject, HasGradleProject
Note that the names of Eclipse projects are unique, and can be used as an identifier for the project.
Modifier and Type | Method and Description |
---|---|
DomainObjectSet<? extends EclipseBuildCommand> |
getBuildCommands()
Returns the Eclipse build commands configured on the project.
|
DomainObjectSet<? extends EclipseProject> |
getChildren()
Returns the child elements, or the empty set if there are no child elements.
|
DomainObjectSet<? extends ExternalDependency> |
getClasspath()
Returns the external dependencies which make up the classpath of this project.
|
GradleProject |
getGradleProject()
The gradle project that is associated with this project.
|
EclipseProject |
getParent()
Returns the parent of this element, or
null if there is no parent. |
DomainObjectSet<? extends EclipseProjectNature> |
getProjectNatures()
Returns the Eclipse natures configured on the project.
|
getLinkedResources, getProjectDependencies, getProjectDirectory, getSourceDirectories
getDescription, getName
EclipseProject getParent()
null
if there is no parent.getParent
in interface HierarchicalEclipseProject
getParent
in interface HierarchicalElement
null
if there is no parent.DomainObjectSet<? extends EclipseProject> getChildren()
getChildren
in interface HierarchicalEclipseProject
getChildren
in interface HierarchicalElement
GradleProject getGradleProject()
See HasGradleProject
getGradleProject
in interface HasGradleProject
DomainObjectSet<? extends ExternalDependency> getClasspath()
@Incubating DomainObjectSet<? extends EclipseProjectNature> getProjectNatures()
If the Gradle project applies a plugin which is recognized by 'eclipse' plugin then the corresponding
nature will be automatically part of the result. For example, if the project applies the 'java' plugin the
result will contain the "org.eclipse.jdt.core.javanature"
entry. The 'scala' plugin behaves similarly:
when applied then the result will contain the "org.scala-ide.sdt.core.scalanature"
entry.
The result can be customized via the 'eclipse' plugin configuration.
@Incubating DomainObjectSet<? extends EclipseBuildCommand> getBuildCommands()
If the Gradle project applies a plugin which is recognized by 'eclipse' plugin then the corresponding
build command will be automatically part of the result. For example, if the project applies the 'java' plugin the
result will contain the "org.eclipse.jdt.core.javabuilder"
build command. The
'scala' plugin behaves similarly: when applied then the result will contain the
"org.scala-ide.sdt.core.scalabuilder"
entry.
The result can be customized via the 'eclipse' plugin configuration.