All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.maven.plugins.application.1.6.0.source-code.launcher Maven / Gradle / Ivy

Go to download

Generates an application file. An application file is a single executable file containing your entire application, it's all you need to distribute or run the application. Technically, an application file is a Bash shell script with an appended executable jar file. You can invoke it directly or you can pass it as an argument to java -jar. You can rename it without breaking the application.

There is a newer version: 1.8.2
Show newest version
#!/bin/sh
# This file was generated by https://github.com/mlhartme/maven-application-plugin
APP="$0"
while [ -h "$APP" ] ; do
  ls=$(ls -ld "$APP")
  link=$(expr "$ls" : '.*-> \(.*\)$')
  if expr "$link" : '/.*' > /dev/null; then
    APP="$link"
  else
    APP=$(dirname "$APP")"/$link"
  fi
done
NAME=$(basename "$APP")
APP=$(dirname "$APP")
APP=$(cd "$APP" && pwd)
APP="$APP/$NAME"
PATH=${{path}}
JAVA=${{java}}
OPTIONS=${{options}}
MAIN=${{main}}
NAME=${{name}}
${{extensions}}
$JAVA $OPTIONS $${{optionsVariable}} -cp "$APP" $MAIN "$@"
exit $?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy