Class WithRepoConvention
- java.lang.Object
-
- com.diffplug.gradle.oomph.OomphConvention
-
- com.diffplug.gradle.oomph.thirdparty.WithRepoConvention
-
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ConventionBuildship,ConventionMinimalistGradleEditor,ConventionTmTerminal
public class WithRepoConvention extends OomphConvention
A Convention which is setup to add a default p2 repository which can be overridden.
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringrepo-
Fields inherited from class com.diffplug.gradle.oomph.OomphConvention
extension
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWithRepoConvention(OomphIdeExtension extension, String defaultRepo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This is called when the convention block ends.voidusingRepo(String repo)Overrides the default repo.-
Methods inherited from class com.diffplug.gradle.oomph.OomphConvention
configure, requireIUs, setPerspectiveOver
-
-
-
-
Constructor Detail
-
WithRepoConvention
protected WithRepoConvention(OomphIdeExtension extension, String defaultRepo)
-
-
Method Detail
-
usingRepo
public void usingRepo(@Nullable String repo)
Overrides the default repo. Setting to null will remove the repo completely.
-
close
public void close()
Description copied from class: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 (seeConventionJdt.- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classOomphConvention
-
-