You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/11/25 07:18:25 UTC
[camel-kamelets] 03/05: Moved all the kamelet.yaml files to kamelets folder
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch kamelet-locations
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 7bffdec1403f3f2efb9887754553e552118ee05a
Author: Andrea Cosentino <an...@gmail.com>
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")
}