Class EclipseModel
java.lang.Object
org.gradle.plugins.ide.eclipse.model.EclipseModel
DSL-friendly model of the Eclipse project information.
First point of entry for customizing Eclipse project generation.
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: '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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigures eclipse classpath informationvoidclasspath(Action<? super EclipseClasspath> action) Configures eclipse classpath informationConfigures eclipse classpath informationgetJdt()Configures eclipse java compatibility information (jdt)Configures eclipse project informationgetWtp()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) voidConfigures eclipse wtp informationvoidwtp(Action<? super EclipseWtp> action) Configures eclipse wtp information
-
Constructor Details
-
EclipseModel
public EclipseModel()
-
-
Method Details
-
getProject
Configures eclipse project informationFor examples see docs for
EclipseProject -
setProject
-
getClasspath
Configures eclipse classpath informationFor examples see docs for
EclipseClasspath -
setClasspath
-
getJdt
Configures eclipse java compatibility information (jdt)For examples see docs for
EclipseProject -
setJdt
-
getWtp
Configures eclipse wtp informationFor examples see docs for
EclipseWtp -
setWtp
-
project
Configures eclipse project informationFor examples see docs for
EclipseProject -
project
Configures eclipse project informationFor examples see docs for
EclipseProject- Since:
- 3.5
-
classpath
Configures eclipse classpath informationFor examples see docs for
EclipseClasspath -
classpath
Configures eclipse classpath informationFor examples see docs for
EclipseClasspath- Since:
- 3.5
-
wtp
Configures eclipse wtp informationFor examples see docs for
EclipseWtp -
wtp
Configures eclipse wtp informationFor examples see docs for
EclipseWtp- Since:
- 3.5
-
jdt
Configures eclipse java compatibility information (jdt)For examples see docs for
EclipseProject -
jdt
Configures eclipse java compatibility information (jdt)For examples see docs for
EclipseProject- Since:
- 3.5
-
pathVariables
Adds 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.
-