Class EclipseModel
 plugins {
     id 'java'
     id 'eclipse'
     id 'eclipse-wtp' // for web projects only
 }
 eclipse {
   pathVariables 'GRADLE_HOME': file('/best/software/gradle'), 'TOMCAT_HOME': file('../tomcat')
   project {
     //see docs for EclipseProject
   }
   classpath {
     //see docs for EclipseClasspath
   }
   wtp {
     //see docs for EclipseWtp
   }
 }
 
 More examples in docs for EclipseProject, EclipseClasspath, EclipseWtp- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidautoBuildTasks(Object... autoBuildTasks) Set tasks to be executed during the Eclipse auto-build.voidConfigures eclipse classpath informationvoidclasspath(Action<? super EclipseClasspath> action) Configures eclipse classpath informationReturns the tasks to be executed during the Eclipse auto-build.Configures eclipse classpath informationgetJdt()Configures eclipse java compatibility information (jdt)protected ObjectFactoryInjects and returns an instance ofObjectFactory.Configures eclipse project informationReturns the tasks to be executed before the Eclipse synchronization starts.getWtp()Configures eclipse wtp informationvoidConfigures eclipse java compatibility information (jdt)voidjdt(Action<? super EclipseJdt> action) Configures eclipse java compatibility information (jdt)voidpathVariables(Map<String, File> pathVariables) Adds path variables to be used for replacing absolute paths in classpath entries.voidConfigures eclipse project informationvoidproject(Action<? super EclipseProject> action) Configures eclipse project informationvoidsetClasspath(EclipseClasspath classpath) voidsetJdt(EclipseJdt jdt) voidsetProject(EclipseProject project) voidsetWtp(EclipseWtp wtp) voidsynchronizationTasks(Object... synchronizationTasks) Set tasks to be executed before the Eclipse synchronization.voidConfigures eclipse wtp informationvoidwtp(Action<? super EclipseWtp> action) Configures eclipse wtp information
- 
Constructor Details- 
EclipseModelpublic EclipseModel()
- 
EclipseModelConstructor.- Since:
- 5.4
 
 
- 
- 
Method Details- 
getObjectFactoryInjects and returns an instance ofObjectFactory.- Since:
- 4.9
 
- 
getProjectConfigures eclipse project informationFor examples see docs for EclipseProject
- 
setProject
- 
getClasspathConfigures eclipse classpath informationFor examples see docs for EclipseClasspath
- 
setClasspath
- 
getJdtConfigures eclipse java compatibility information (jdt)For examples see docs for EclipseProject
- 
setJdt
- 
getWtpConfigures eclipse wtp informationFor examples see docs for EclipseWtp
- 
setWtp
- 
projectConfigures eclipse project informationFor examples see docs for EclipseProject
- 
projectConfigures eclipse project informationFor examples see docs for EclipseProject- Since:
- 3.5
 
- 
classpathConfigures eclipse classpath informationFor examples see docs for EclipseClasspath
- 
classpathConfigures eclipse classpath informationFor examples see docs for EclipseClasspath- Since:
- 3.5
 
- 
wtpConfigures eclipse wtp informationFor examples see docs for EclipseWtp
- 
wtpConfigures eclipse wtp informationFor examples see docs for EclipseWtp- Since:
- 3.5
 
- 
jdtConfigures eclipse java compatibility information (jdt)For examples see docs for EclipseProject
- 
jdtConfigures eclipse java compatibility information (jdt)For examples see docs for EclipseProject- Since:
- 3.5
 
- 
getSynchronizationTasksReturns the tasks to be executed before the Eclipse synchronization starts.This property doesn't have a direct effect to the Gradle Eclipse plugin's behaviour. It is used, however, by Buildship to execute the configured tasks each time before the user imports the project or before a project synchronization starts. - Returns:
- the tasks names
- Since:
- 5.4
 
- 
synchronizationTasksSet tasks to be executed before the Eclipse synchronization.- Since:
- 5.4
- See Also:
 
- 
getAutoBuildTasksReturns the tasks to be executed during the Eclipse auto-build.This property doesn't have a direct effect to the Gradle Eclipse plugin's behaviour. It is used, however, by Buildship to execute the configured tasks each time when the Eclipse automatic build is triggered for the project. - Returns:
- the tasks names
- Since:
- 5.4
 
- 
autoBuildTasksSet tasks to be executed during the Eclipse auto-build.- Since:
- 5.4
- See Also:
 
- 
pathVariablesAdds path variables to be used for replacing absolute paths in classpath entries.If the beginning of the absolute path of a library or other path-related element matches a value of a variable, a variable entry is used. The matching part of the library path is replaced with the variable name. For example see docs for EclipseModel- Parameters:
- pathVariables- A map with String->File pairs.
 
 
-