summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-12-19 21:54:02 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-12-19 21:54:02 +0100
commit759aceb4a7bd0185004873f6db1d902fbc1d3fb8 (patch)
treef6e40ed47cc6e5d12dd1eb04ffaab0e8dd53af71
parent4383dd957c558fc0a98039e3645454734985d0c0 (diff)
downloaddebian-packages-759aceb4a7bd0185004873f6db1d902fbc1d3fb8.tar.gz
debian-packages-759aceb4a7bd0185004873f6db1d902fbc1d3fb8.zip
skip activator task if nothing is configured
-rw-r--r--build.gradle5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 2664621..beb42c7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -146,11 +146,16 @@ subprojects {
envFile.write(entry.value as String)
}
}
+ activatorTask.inputs.property('extension', activatorExtension)
+ activatorTask.onlyIf {
+ !(activatorExtension.env.isEmpty() && activatorExtension.bin.isEmpty())
+ }
project.afterEvaluate {
project.extensions.getByName('ospackage').from(new File(activatorDir, 'env')) {
into("/opt/activator/${project.name}/env")
fileMode = 0444
}
+
activatorExtension.env.each {
activatorTask.outputs.file(new File(activatorDir, "env/${it.key}"))
}