mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Rename to templateContributors.
This commit is contained in:
parent
d806649194
commit
1257b9b310
3 changed files with 6 additions and 6 deletions
|
@ -17,7 +17,7 @@ class ProjectGenerator @Inject constructor(val pluginInfo: PluginInfo){
|
|||
fun run(args: Args, classLoader: ClassLoader) {
|
||||
File(args.buildFile).parentFile.mkdirs()
|
||||
val map = hashMapOf<String, ITemplate>()
|
||||
pluginInfo.initContributors.forEach {
|
||||
pluginInfo.templateContributors.forEach {
|
||||
it.templates.forEach {
|
||||
map.put(it.templateName, it)
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ class Templates : ITemplateContributor {
|
|||
|
||||
fun getTemplates(pluginInfo: PluginInfo): ListMultimap<String, ITemplate> {
|
||||
val map = ArrayListMultimap.create<String, ITemplate>()
|
||||
pluginInfo.initContributors.forEach {
|
||||
pluginInfo.templateContributors.forEach {
|
||||
it.templates.forEach {
|
||||
map.put(it.pluginName, it)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue