diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-12-19 21:54:02 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-12-19 21:54:02 +0100 |
commit | 759aceb4a7bd0185004873f6db1d902fbc1d3fb8 (patch) | |
tree | f6e40ed47cc6e5d12dd1eb04ffaab0e8dd53af71 | |
parent | 4383dd957c558fc0a98039e3645454734985d0c0 (diff) | |
download | debian-packages-759aceb4a7bd0185004873f6db1d902fbc1d3fb8.tar.gz debian-packages-759aceb4a7bd0185004873f6db1d902fbc1d3fb8.zip |
skip activator task if nothing is configured
-rw-r--r-- | build.gradle | 5 |
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}")) } |