public class WithRepoConvention extends OomphConvention
A Convention which is setup to add a default p2 repository which can be overridden.
| Modifier and Type | Field and Description |
|---|---|
protected String |
repo |
extension| Modifier | Constructor and Description |
|---|---|
protected |
WithRepoConvention(OomphIdeExtension extension,
String defaultRepo) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This is called when the convention block ends.
|
void |
usingRepo(String repo)
Overrides the default repo.
|
configure, requireIUs, setPerspectiveOverprotected WithRepoConvention(OomphIdeExtension extension, String defaultRepo)
public void usingRepo(@Nullable String repo)
Overrides the default repo. Setting to null will remove the repo completely.
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