summaryrefslogtreecommitdiff
path: root/packages/jvmtop
diff options
context:
space:
mode:
Diffstat (limited to 'packages/jvmtop')
-rw-r--r--packages/jvmtop/build.gradle13
-rwxr-xr-xpackages/jvmtop/resources/bin/jvmtop5
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