summaryrefslogtreecommitdiffstats
path: root/common/minimal-distribution-parent/pom.xml
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-08-22 12:59:37 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-08-22 14:28:54 +0000
commit4ae1834e89a1b43d0d54b817397208232f5835a0 (patch)
tree2c684480edf47c889cc0918cb5bc01142329049a /common/minimal-distribution-parent/pom.xml
parentb47d696bf3bd5640f44b43cdb12688dc19a0b5d7 (diff)
Honeycomb deb packaging
Change-Id: I6f029ef9236cbd3f7f20fd8e44f83b15cdedc5db Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'common/minimal-distribution-parent/pom.xml')
-rw-r--r--common/minimal-distribution-parent/pom.xml12
1 files changed, 8 insertions, 4 deletions
diff --git a/common/minimal-distribution-parent/pom.xml b/common/minimal-distribution-parent/pom.xml
index bfc0aef6b..36514dfe6 100644
--- a/common/minimal-distribution-parent/pom.xml
+++ b/common/minimal-distribution-parent/pom.xml
@@ -146,15 +146,19 @@
log.info "Generating shell exec script"
def args = properties.getOrDefault("exec.parameters", "")
log.debug "Additional shell exec script properties: ${args}"
- def scriptContent = "java ${args} -jar \$(dirname \$0)/${project.artifactId}-${project.version}.jar &amp;"
+ def scriptContent = "java ${args} -jar \$(dirname \$0)/${project.artifactId}-${project.version}.jar"
log.info "Generating shell exec script as ${scriptContent}"
def scriptParent = Paths.get(project.build.outputDirectory, "honeycomb-minimal-resources")
scriptParent.toFile().mkdirs()
def scriptPath = Paths.get(scriptParent.toString(), "honeycomb")
log.info "Writing shell exec script to ${scriptPath}"
- scriptPath.toFile().text = "#!/bin/sh -"
- scriptPath.toFile().text += "\n"
- scriptPath.toFile().text += scriptContent
+ scriptContent = "#!/bin/sh -\n" + scriptContent
+ scriptPath.toFile().text = scriptContent
+ scriptPath.toFile().setExecutable(true)
+
+ scriptPath = Paths.get(scriptParent.toString(), "honeycomb-start")
+ log.info "Writing shell exec script to ${scriptPath}"
+ scriptPath.toFile().text = scriptContent + " &amp;"
scriptPath.toFile().setExecutable(true)
</source>
</configuration>