This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 1b47be0f584e834dd3168ac93d6be46cd8808853 Author: Andrea Cosentino <[email protected]> AuthorDate: Thu Nov 25 08:10:30 2021 +0100 Moved all the kamelet.yaml files to kamelets folder --- script/generator/generator.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/generator/generator.go b/script/generator/generator.go index 5d2c699..8cb80d3 100644 --- a/script/generator/generator.go +++ b/script/generator/generator.go @@ -43,13 +43,13 @@ func main() { docTemplate, err := template.New("kamelet.adoc.tmpl").Funcs(funcMap).ParseFiles(templateFile, kameletBindingFile, propertiesListFile) handleGeneralError(fmt.Sprintf("cannot load template file from %s", templateFile), err) - camelKYamlBindingsBaseDir := filepath.Join(projectBaseDir, "templates", "bindings", "camel-k") + camelKYamlBindingsBaseDir := filepath.Join(projectBaseDir, "../templates", "bindings", "camel-k") yamlTemplateFile := path.Join(camelKYamlBindingsBaseDir, "kamelet.yaml.tmpl") yamlTemplate, err := template.New("kamelet.yaml.tmpl").Funcs(funcMap).ParseFiles(yamlTemplateFile, kameletBindingFile, propertiesListFile) handleGeneralError(fmt.Sprintf("cannot load template file from %s", templateFile), err) - coreYamlBindingsBaseDir := filepath.Join(projectBaseDir, "templates", "bindings", "core") + coreYamlBindingsBaseDir := filepath.Join(projectBaseDir, "../templates", "bindings", "core") coreYamlTemplateFile := path.Join(coreYamlBindingsBaseDir, "kamelet-core-binding.yaml.tmpl") parameterListFile := path.Join(coreYamlBindingsBaseDir, "parameter-list.tmpl") @@ -378,7 +378,7 @@ func produceDocFile(k camel.Kamelet, baseDir string, content string) { } func produceBindingFile(k camel.Kamelet, baseDir string, projectName string, content string) { - camelKOutputDir := filepath.Join(baseDir, "templates", "bindings", projectName) + camelKOutputDir := filepath.Join(baseDir, "../templates", "bindings", projectName) produceOutputFile(k, camelKOutputDir, content,"-binding.yaml") }
