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 2022/01/07 06:36:13 UTC
[camel-kamelets] 08/08: Camel-Kamelets-Bom: Fixed script
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch bom-work
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 77f47bd53babd9fe536aae6779dc0b1e222e8e64
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jan 7 07:34:43 2022 +0100
Camel-Kamelets-Bom: Fixed script
---
script/version/UpdateDepsVersionKamelets.groovy | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/script/version/UpdateDepsVersionKamelets.groovy b/script/version/UpdateDepsVersionKamelets.groovy
index 52114c0..cf87d1d 100644
--- a/script/version/UpdateDepsVersionKamelets.groovy
+++ b/script/version/UpdateDepsVersionKamelets.groovy
@@ -51,8 +51,8 @@ def updateKameletDirectory(String directoryName, Map properties) {
String kameletFile = f.getName()
new File( kameletFile + ".bak" ).withWriter { w ->
new File( directoryName + kameletFile ).eachLine { line ->
- libVersions.each { line = line.replaceAll(it.key, it.value)
- w << line + System.getProperty("line.separator") }
+ libVersions.each { line = line.replaceAll(it.key, it.value) }
+ w << line + System.getProperty("line.separator")
}
}
Files.copy(Paths.get(kameletFile + ".bak"), Paths.get(directoryName + kameletFile), StandardCopyOption.REPLACE_EXISTING)