diff options
Diffstat (limited to 'common/minimal-distribution-parent/pom.xml')
-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> |