From bb29281a4e1092b605c4ae1019df01f6eef66f3a Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 21 May 2016 17:24:14 +0200 Subject: add activator support --- packages/jvmtop/build.gradle | 13 ++++++++----- packages/jvmtop/resources/bin/jvmtop | 5 ----- 2 files changed, 8 insertions(+), 10 deletions(-) delete mode 100755 packages/jvmtop/resources/bin/jvmtop (limited to 'packages/jvmtop') 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 -- cgit v1.2.1