Schnittstelle EclipseProject
- Alle Superschnittstellen:
Element,HasGradleProject,HierarchicalEclipseProject,HierarchicalElement,Model,ProjectModel
Note that the names of Eclipse projects are unique, and can be used as an identifier for the project.
- Seit:
- 1.0-milestone-3
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungDomainObjectSet<? extends EclipseBuildCommand> Returns the Eclipse build commands configured on the project.DomainObjectSet<? extends EclipseProject> Returns the child elements, or the empty set if there are no child elements.DomainObjectSet<? extends EclipseExternalDependency> Returns the external dependencies which make up the classpath of this project.DomainObjectSet<? extends EclipseClasspathContainer> Returns the Eclipse classpath containers defined on the project.The gradle project that is associated with this project.Returns the Java source settings for this project.Returns the output location of this project.Returns the parent of this element, ornullif there is no parent.DomainObjectSet<? extends EclipseProjectNature> Returns the Eclipse natures configured on the project.booleanIf this method returns true then Eclipse should execute the tasks configured ateclipse.autoBuildTasksevery time the auto-build is triggered for the target project.Von Schnittstelle geerbte Methoden org.gradle.tooling.model.Element
getDescription, getNameVon Schnittstelle geerbte Methoden org.gradle.tooling.model.HasGradleProject
getProjectIdentifierVon Schnittstelle geerbte Methoden org.gradle.tooling.model.eclipse.HierarchicalEclipseProject
getLinkedResources, getProjectDependencies, getProjectDirectory, getSourceDirectories
-
Methodendetails
-
getParent
EclipseProject getParent()Returns the parent of this element, ornullif there is no parent.- Angegeben von:
getParentin SchnittstelleHierarchicalEclipseProject- Angegeben von:
getParentin SchnittstelleHierarchicalElement- Gibt zurück:
- The parent of this element, or
nullif there is no parent.
-
getChildren
DomainObjectSet<? extends EclipseProject> getChildren()Returns the child elements, or the empty set if there are no child elements.- Angegeben von:
getChildrenin SchnittstelleHierarchicalEclipseProject- Angegeben von:
getChildrenin SchnittstelleHierarchicalElement- Gibt zurück:
- The child elements, or the empty set if there are no child elements.
-
getJavaSourceSettings
Returns the Java source settings for this project.- Gibt zurück:
- the settings for Java sources or
nullif not a Java element. - Löst aus:
UnsupportedMethodException- For Gradle versions older than 2.10, where this method is not supported.- Seit:
- 2.10
-
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- Angegeben von:
getGradleProjectin SchnittstelleHasGradleProject- Gibt zurück:
- associated gradle project
- Seit:
- 1.0-milestone-5
-
getClasspath
DomainObjectSet<? extends EclipseExternalDependency> getClasspath()Returns the external dependencies which make up the classpath of this project.- Gibt zurück:
- The dependencies. Returns an empty set if the project has no external dependencies.
- Seit:
- 1.0-milestone-3
-
getProjectNatures
DomainObjectSet<? extends EclipseProjectNature> getProjectNatures() throws UnsupportedMethodExceptionReturns 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.
- Gibt zurück:
- The list of Eclipse project natures.
- Löst aus:
UnsupportedMethodException- For Gradle versions older than 2.9, where this method is not supported.- Seit:
- 2.9
-
getBuildCommands
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.
- Gibt zurück:
- The list of Eclipse build commands.
- Löst aus:
UnsupportedMethodException- For Gradle versions older than 2.9, where this method is not supported.- Seit:
- 2.9
-
getClasspathContainers
DomainObjectSet<? extends EclipseClasspathContainer> getClasspathContainers() throws UnsupportedMethodExceptionReturns the Eclipse classpath containers defined on the project.- Gibt zurück:
- The list of classpath containers.
- Löst aus:
UnsupportedMethodException- For Gradle versions older than 3.0, where this method is not supported.- Seit:
- 3.0
-
getOutputLocation
Returns the output location of this project.- Gibt zurück:
- The project's output location.
- Löst aus:
UnsupportedMethodException- For Gradle versions older than 3.0, where this method is not supported.- Seit:
- 3.0
-
hasAutoBuildTasks
boolean hasAutoBuildTasks()If this method returns true then Eclipse should execute the tasks configured ateclipse.autoBuildTasksevery time the auto-build is triggered for the target project.- Gibt zurück:
- whether the project has auto-build tasks configured
- Seit:
- 5.4
- Siehe auch:
-