public class ConventionJdt extends OomphConvention
Adding the JDT convention to your project adds the following features:
org.eclipse.platform.ideorg.eclipse.jdtorg.eclipse.ui.views.logYou can set the installed JRE as follows:
oomphIde {
jdt {
installedJre {
version = '1.6.0_45'
installedLocation = new File('C:/jdk1.6.0_45')
markDefault = true // or false
executionEnvironments = ['JavaSE-1.6'] // any execution environments can be specified here.
}
compilerComplianceLevel('1.6')
classpathVariable('myClasspath', '/var/lib/repo')
}
}
extension| Modifier and Type | Method and Description |
|---|---|
void |
classpathVariable(String name,
String value)
Adds a compiler class path variable.
|
void |
close()
This is called when the convention block ends.
|
void |
compilerComplianceLevel(String compilerComplianceLevel)
Sets default compliance level
|
void |
installedJre(Action<InstalledJre> action)
Adds an installed JRE with the given content.
|
configure, requireIUs, setPerspectiveOverpublic void installedJre(Action<InstalledJre> action)
Adds an installed JRE with the given content.
public void compilerComplianceLevel(String compilerComplianceLevel)
Sets default compliance level
public void classpathVariable(String name, String value)
Adds a compiler class path variable.
public void close()
OomphConventionThis is called when the convention block ends.
Usually it can just be empty, but if you’ve been accumulating values, this is your chance to smush them down into a setup action (see ConventionJdt.
close in interface AutoCloseableclose in class OomphConvention