diff options
author | Maros Marsalek <mmarsale@cisco.com> | 2016-08-12 13:51:56 +0200 |
---|---|---|
committer | Maros Marsalek <mmarsale@cisco.com> | 2016-08-19 12:49:56 +0200 |
commit | dcd507eff53e7c0abd659da416aac91a7d29e3d3 (patch) | |
tree | 8e021d05538cb862527ed98c3e9d1f3e19fc4d8f /common | |
parent | d022ca8d078e1731435bf3e69a9a1ff85e7e0c63 (diff) |
HONEYCOMB-137: Put minimal distribution into RPM
Change-Id: I163be0361f75a29aac569b019892433b12bfb0a6
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/minimal-distribution-parent/pom.xml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/common/minimal-distribution-parent/pom.xml b/common/minimal-distribution-parent/pom.xml index ac67b7921..ac3931f4f 100644 --- a/common/minimal-distribution-parent/pom.xml +++ b/common/minimal-distribution-parent/pom.xml @@ -144,13 +144,16 @@ 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" + 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.sh") + def scriptPath = Paths.get(scriptParent.toString(), "honeycomb") log.info "Writing shell exec script to ${scriptPath}" - scriptPath.toFile().text = scriptContent + scriptPath.toFile().text = "#!/bin/sh -" + scriptPath.toFile().text += "\n" + scriptPath.toFile().text += scriptContent + scriptPath.toFile().setExecutable(true) </source> </configuration> </execution> |