Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2019-05-23 08:45:50 +0000
committerJuergen Haug2019-05-23 08:45:50 +0000
commit012c80d53d57171fbc8444bf583d7fc712ef1b05 (patch)
treed51c7a44dd9db35437b4fab52457238b478ba927
parent3f2e8a6a635496416b5bd869a9f7a34018ce201e (diff)
downloadorg.eclipse.etrice-012c80d53d57171fbc8444bf583d7fc712ef1b05.tar.gz
org.eclipse.etrice-012c80d53d57171fbc8444bf583d7fc712ef1b05.tar.xz
org.eclipse.etrice-012c80d53d57171fbc8444bf583d7fc712ef1b05.zip
[releng] added task to load additional properties
-rw-r--r--build.gradle19
1 files changed, 18 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index ee1c8f17b..1099b4a03 100644
--- a/build.gradle
+++ b/build.gradle
@@ -16,4 +16,21 @@ allprojects {
url 'https://repo.eclipse.org/content/repositories/maven_central/'
}
}
-} \ No newline at end of file
+}
+
+/**
+ * Requires property 'additionalPropertiesFile'
+ */
+task loadAdditionalPropertiesFile() {
+ doFirst {
+ def props = new Properties()
+ file(additionalPropertiesFile).withInputStream {
+ stream -> props.load(stream)
+ }
+ props.each { entry ->
+ project.ext[entry.key] = entry.value
+ }
+ println "Loaded properties from ${additionalPropertiesFile}: ${props.keySet()}"
+ }
+}
+

Back to the top