Element
, HasGradleProject
, HierarchicalEclipseProject
, HierarchicalElement
, Model
, ProjectModel
public interface EclipseProject extends HierarchicalEclipseProject
Note that the names of Eclipse projects are unique, and can be used as an identifier for the project.
Modifier and Type | Method | 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 EclipseExternalDependency> |
getClasspath() |
Returns the external dependencies which make up the classpath of this project.
|
DomainObjectSet<? extends EclipseClasspathContainer> |
getClasspathContainers() |
Returns the Eclipse classpath containers defined on the project.
|
GradleProject |
getGradleProject() |
The gradle project that is associated with this project.
|
EclipseJavaSourceSettings |
getJavaSourceSettings() |
Returns the Java source settings for this project.
|
EclipseOutputLocation |
getOutputLocation() |
Returns the output location of 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.
|
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. |
getDescription, getName
getProjectIdentifier
getLinkedResources, getProjectDependencies, getProjectDirectory, getSourceDirectories
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
@Nullable EclipseJavaSourceSettings getJavaSourceSettings() throws UnsupportedMethodException
null
if not a Java element.UnsupportedMethodException
- For Gradle versions older than 2.10, where this method is not supported.GradleProject getGradleProject()
See HasGradleProject
getGradleProject
in interface HasGradleProject
DomainObjectSet<? extends EclipseExternalDependency> getClasspath()
DomainObjectSet<? extends EclipseProjectNature> getProjectNatures() throws UnsupportedMethodException
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.
UnsupportedMethodException
- For Gradle versions older than 2.9, where this method is not supported.DomainObjectSet<? extends EclipseBuildCommand> getBuildCommands() throws UnsupportedMethodException
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.
UnsupportedMethodException
- For Gradle versions older than 2.9, where this method is not supported.DomainObjectSet<? extends EclipseClasspathContainer> getClasspathContainers() throws UnsupportedMethodException
UnsupportedMethodException
- For Gradle versions older than 3.0, where this method is not supported.EclipseOutputLocation getOutputLocation() throws UnsupportedMethodException
UnsupportedMethodException
- For Gradle versions older than 3.0, where this method is not supported.@Incubating boolean hasAutoBuildTasks()
eclipse.autoBuildTasks
every time the auto-build is triggered for the target project.RunEclipseAutoBuildTasks