summaryrefslogtreecommitdiff
path: root/packages/jvmtop/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'packages/jvmtop/build.gradle')
-rw-r--r--packages/jvmtop/build.gradle13
1 files changed, 8 insertions, 5 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"