diff --git a/library-templates/generated-connector-template/scripts/replace_placeholders.bal b/library-templates/generated-connector-template/scripts/replace_placeholders.bal index d34a667e..c3216d9a 100644 --- a/library-templates/generated-connector-template/scripts/replace_placeholders.bal +++ b/library-templates/generated-connector-template/scripts/replace_placeholders.bal @@ -21,7 +21,7 @@ import ballerina/log; import ballerina/time; // Define file extensions to be accepted as template files -public type TemplateFileType "bal"|"md"|"json"|"yaml"|"yml"|"toml"|"gradle"|"properties"|"gitignore"|"txt"|"jar"|"sh"|"bat"|"LICENSE"|"CODEOWNERS"; +public type TemplateFileType "bal"|"md"|"json"|"yaml"|"yml"|"toml"|"gradle"|"properties"|"gitignore"|"txt"|"sh"|"bat"|"LICENSE"|"CODEOWNERS"; # This function generates a connector template with the given metadata. # @@ -66,7 +66,7 @@ function processDirectory(string dir, map placeholders) returns error? { function processFile(string filePath, map placeholders) returns error? { string ext = getExtension(filePath); - if ext !is TemplateFileType || ext != "jar" { + if ext !is TemplateFileType { log:printInfo("Skipping file: " + filePath); return; }