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

templates.run.ftl Maven / Gradle / Ivy

There is a newer version: 21.16.1.0
Show newest version
<#-- template to create the runner script -->
<#if osName?upper_case?contains("WIN")>
@echo off
pushd %~dp0
set script_dir=%CD%
popd
cd %script_dir%
cd ..
  <#if mainModule != "">
<#-- modular application -->
bin\java${(modulePath!="")?then(" -p " + modulePath, "")}${(classPath!="")?then(" -cp " + classPath, "")} -m ${mainModule}/${mainClass}
  <#else>
<#-- classpath application -->
bin\java -cp ${classPath} ${mainClass}
  
<#else>
#!/bin/sh
  <#if osName?upper_case?contains("MAC")>
abs_path() {
  echo "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")"
}
cd "$(dirname "$(dirname "$(abs_path "$0")")")"
  <#else>
cd "$(dirname "$(dirname "$(readlink -f "$0")")")"
  
  <#if mainModule != "">
<#-- modular application -->
bin/java${(modulePath!="")?then(" -p " + modulePath, "")}${(classPath!="")?then(" -cp " + classPath, "")} -m ${mainModule}/${mainClass}
  <#else>
<#-- classpath application -->
bin/java -cp ${classPath} ${mainClass}
  




© 2015 - 2024 Weber Informatics LLC | Privacy Policy