From dcd507eff53e7c0abd659da416aac91a7d29e3d3 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Fri, 12 Aug 2016 13:51:56 +0200 Subject: HONEYCOMB-137: Put minimal distribution into RPM Change-Id: I163be0361f75a29aac569b019892433b12bfb0a6 Signed-off-by: Maros Marsalek --- common/minimal-distribution-parent/pom.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'common') 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) -- cgit 1.2.3-korg