diff options
author | Yves Fischer <yves.fischer@cern.ch> | 2016-05-21 17:24:14 +0200 |
---|---|---|
committer | Yves Fischer <yves.fischer@cern.ch> | 2016-05-21 17:24:14 +0200 |
commit | bb29281a4e1092b605c4ae1019df01f6eef66f3a (patch) | |
tree | a897cbf58fed9079aee4e3f8dada31b92b530631 /packages/jvmtop | |
parent | de1e05cdea94cf97c9376f988f276daa39bfde2e (diff) | |
download | debian-packages-bb29281a4e1092b605c4ae1019df01f6eef66f3a.tar.gz debian-packages-bb29281a4e1092b605c4ae1019df01f6eef66f3a.zip |
add activator support
Diffstat (limited to 'packages/jvmtop')
-rw-r--r-- | packages/jvmtop/build.gradle | 13 | ||||
-rwxr-xr-x | packages/jvmtop/resources/bin/jvmtop | 5 |
2 files changed, 8 insertions, 10 deletions
diff --git a/packages/jvmtop/build.gradle b/packages/jvmtop/build.gradle index 242bb4c..a37a66c 100644 --- a/packages/jvmtop/build.gradle +++ b/packages/jvmtop/build.gradle @@ -17,11 +17,14 @@ task unpack(type: Copy) { unpack.dependsOn(download) ospackage { - from(fileTree(dir: 'resources')) { - into "/opt/${project.name}" - } - from(unpack.outputs.files) { - into "/opt/${project.name}/lib" + into "/opt/${project.name}" + eachFile { FileCopyDetails fcd -> + if (fcd.name == "jvmtop.sh") { + fcd.mode = 0555 + } + } } } + +activator.bin['jvmtop'] = "/opt/${project.name}/jvmtop.sh" diff --git a/packages/jvmtop/resources/bin/jvmtop b/packages/jvmtop/resources/bin/jvmtop deleted file mode 100755 index 6933c33..0000000 --- a/packages/jvmtop/resources/bin/jvmtop +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -STARTER="`dirname \"$0\"`/../lib/jvmtop.sh" - -/bin/sh $STARTER
\ No newline at end of file |