diff --git a/pom.xml b/pom.xml index e2e92a1..9edce99 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.github.terefang.template template - 2021.5.360 + 2021.5.361 template-cli template-maven-plugin diff --git a/template-cli/pom.xml b/template-cli/pom.xml index f2da208..14dbd4d 100644 --- a/template-cli/pom.xml +++ b/template-cli/pom.xml @@ -5,7 +5,7 @@ template com.github.terefang.template - 2021.5.360 + 2021.5.361 4.0.0 @@ -106,67 +106,6 @@ RELEASE provided - - - org.kohsuke - github-api - 1.131 - - - com.fasterxml.jackson.core - jackson-databind - 2.12.3 - - - commons-io - commons-io - 2.8.0 - - - org.apache.commons - commons-lang3 - 3.9 - - - com.infradna.tool - bridge-method-annotation - 1.21 - - - com.squareup.okhttp - okhttp-urlconnection - 2.7.5 - - - com.squareup.okhttp3 - okhttp - 4.4.1 - - - com.squareup.okhttp3 - okhttp-urlconnection - 3.12.3 - - - com.squareup.okio - okio - 2.5.0 - - - io.jsonwebtoken - jjwt-api - 0.11.2 - - - io.jsonwebtoken - jjwt-impl - 0.11.2 - - - io.jsonwebtoken - jjwt-jackson - 0.11.2 - @@ -212,7 +151,7 @@ org.apache.commons commons-compress - 1.21 + 1.19 org.apache.ant @@ -231,7 +170,7 @@ - /dev/null` [ $? -gt 0 -a -f "$0" ] && MYSELF="./$0" MYDIR=$(dirname $MYSELF) -MYEXE=$(basename $MYSELF) - -if test "x$1" = "x-install"; then - shift - IDIR=$(cd $MYDIR && pwd) - for e in jexl jxlt ecma gsimple jinjava freemarker thymeleaf trimou; do - for m in std template; do - cd $IDIR && ln -s ./$MYEXE $e-$m-proc - done - done - cd $IDIR && ln -s ./$MYEXE preprocessor-proc - cd $IDIR && ln -s ./$MYEXE script-proc - exit 0; -fi if test "x$1" = "x-java-term" -o "x$1" = "x-JT"; then shift @@ -57,43 +43,7 @@ if test "x$1" = "x"; then exit 1 fi -if test "x$MYEXE" = "xjexl-std-proc"; then - EXEARGS=" -T JEXL -M STANDARD " -elif test "x$MYEXE" = "xjexl-template-proc"; then - EXEARGS=" -T JEXL -M TEMPLATE " -elif test "x$MYEXE" = "xjxlt-std-proc"; then - EXEARGS=" -T JXLT -M STANDARD " -elif test "x$MYEXE" = "xjxlt-template-proc"; then - EXEARGS=" -T JXLT -M TEMPLATE " -elif test "x$MYEXE" = "xecma-std-proc"; then - EXEARGS=" -T ECMA -M STANDARD " -elif test "x$MYEXE" = "xecma-template-proc"; then - EXEARGS=" -T ECMA -M TEMPLATE " -elif test "x$MYEXE" = "xgsimple-std-proc"; then - EXEARGS=" -T GROOVY -M STANDARD " -elif test "x$MYEXE" = "xgsimple-template-proc"; then - EXEARGS=" -T GROOVY -M TEMPLATE " -elif test "x$MYEXE" = "xjinjava-std-proc"; then - EXEARGS=" -T JINJAVA -M STANDARD " -elif test "x$MYEXE" = "xjinjava-template-proc"; then - EXEARGS=" -T JINJAVA -M TEMPLATE " -elif test "x$MYEXE" = "xfreemarker-std-proc"; then - EXEARGS=" -T FREEMARKER -M STANDARD " -elif test "x$MYEXE" = "xfreemarker-template-proc"; then - EXEARGS=" -T FREEMARKER -M TEMPLATE " -elif test "x$MYEXE" = "xthymeleaf-std-proc"; then - EXEARGS=" -T THYMELEAF -M STANDARD " -elif test "x$MYEXE" = "xthymeleaf-template-proc"; then - EXEARGS=" -T THYMELEAF -M TEMPLATE " -elif test "x$MYEXE" = "xtrimou-std-proc"; then - EXEARGS=" -T TRIMOU -M STANDARD " -elif test "x$MYEXE" = "xtrimou-template-proc"; then - EXEARGS=" -T TRIMOU -M TEMPLATE " -elif test "x$MYEXE" = "xpreprocessor-proc"; then - EXEARGS=" -T PREPROCESSOR -M STANDARD " -elif test "x$MYEXE" = "xscript-proc"; then - EXEARGS=" -T SCRIPT -M SCRIPT " -fi +exec "$java" $_JAVA_OPTS -jar $MYSELF "$@" +exit 1 -exec "$java" $_JAVA_OPTS -jar $MYSELF $EXEARGS "$@" -exit 1 \ No newline at end of file +# \ No newline at end of file diff --git a/template-cli/src/main/dist/stub.sh.old b/template-cli/src/main/dist/stub.sh.old new file mode 100644 index 0000000..c5af908 --- /dev/null +++ b/template-cli/src/main/dist/stub.sh.old @@ -0,0 +1,105 @@ +#!/bin/sh +MYSELF=`which "$0" 2>/dev/null` +[ $? -gt 0 -a -f "$0" ] && MYSELF="./$0" +MYDIR=$(dirname $MYSELF) +MYEXE=$(basename $MYSELF) + +if test "x$1" = "x-install"; then + shift + IDIR=$(cd $MYDIR && pwd) + for e in jexl jxlt ecma gsimple jinjava freemarker thymeleaf trimou; do + for m in std template; do + cd $IDIR && ln -s ./$MYEXE $e-$m-proc + done + done + cd $IDIR && ln -s ./$MYEXE preprocessor-proc + cd $IDIR && ln -s ./$MYEXE script-proc + exit 0; +fi + +if test "x$1" = "x-java-term" -o "x$1" = "x-JT"; then + shift + export TERM="$1" + shift +fi + +if test "x$1" = "x-java-home" -o "x$1" = "x-JH"; then + shift + export JAVA_HOME="$1" + shift +fi + +if test "x$1" = "x-java-opts" -o "x$1" = "x-JO"; then + shift + export _JAVA_OPTS="$1" + shift +fi + +if test ! -n "$JAVA_HOME"; then + if test -d "$MYDIR/java"; then + export JAVA_HOME="$MYDIR/java" + elif test -d "$MYDIR/jre"; then + export JAVA_HOME="$MYDIR/jre" + elif test -d "$MYDIR/../java"; then + export JAVA_HOME="$MYDIR/../java" + elif test -d "$MYDIR/../jre"; then + export JAVA_HOME="$MYDIR/../jre" + fi +fi + +java=java +if test -n "$JAVA_HOME"; then + java="$JAVA_HOME/bin/java" +fi + +if test "x$1" = "x"; then + exec "$java" -jar $MYSELF + exit 1 +fi + +if test "x$MYEXE" = "xjexl-std-proc"; then + EXEARGS=" -T JEXL -M STANDARD " +elif test "x$MYEXE" = "xjexl-template-proc"; then + EXEARGS=" -T JEXL -M TEMPLATE " +elif test "x$MYEXE" = "xjxlt-std-proc"; then + EXEARGS=" -T JXLT -M STANDARD " +elif test "x$MYEXE" = "xjxlt-template-proc"; then + EXEARGS=" -T JXLT -M TEMPLATE " +elif test "x$MYEXE" = "xecma-std-proc"; then + EXEARGS=" -T ECMA -M STANDARD " +elif test "x$MYEXE" = "xecma-template-proc"; then + EXEARGS=" -T ECMA -M TEMPLATE " +elif test "x$MYEXE" = "xgsimple-std-proc"; then + EXEARGS=" -T GROOVY -M STANDARD " +elif test "x$MYEXE" = "xgsimple-template-proc"; then + EXEARGS=" -T GROOVY -M TEMPLATE " +elif test "x$MYEXE" = "xjinjava-std-proc"; then + EXEARGS=" -T JINJAVA -M STANDARD " +elif test "x$MYEXE" = "xjinjava-template-proc"; then + EXEARGS=" -T JINJAVA -M TEMPLATE " +elif test "x$MYEXE" = "xfreemarker-std-proc"; then + EXEARGS=" -T FREEMARKER -M STANDARD " +elif test "x$MYEXE" = "xfreemarker-template-proc"; then + EXEARGS=" -T FREEMARKER -M TEMPLATE " +elif test "x$MYEXE" = "xthymeleaf-std-proc"; then + EXEARGS=" -T THYMELEAF -M STANDARD " +elif test "x$MYEXE" = "xthymeleaf-template-proc"; then + EXEARGS=" -T THYMELEAF -M TEMPLATE " +elif test "x$MYEXE" = "xtrimou-std-proc"; then + EXEARGS=" -T TRIMOU -M STANDARD " +elif test "x$MYEXE" = "xtrimou-template-proc"; then + EXEARGS=" -T TRIMOU -M TEMPLATE " +elif test "x$MYEXE" = "xpreprocessor-proc"; then + EXEARGS=" -T PREPROCESSOR -M STANDARD " +elif test "x$MYEXE" = "xscript-proc"; then + EXEARGS=" -T SCRIPT -M SCRIPT " +fi + +exec "$java" $_JAVA_OPTS -jar $MYSELF $EXEARGS "$@" +exit 1 +# +# +# +# +# +# diff --git a/template-maven-plugin/pom.xml b/template-maven-plugin/pom.xml index 64b9143..195ba0c 100644 --- a/template-maven-plugin/pom.xml +++ b/template-maven-plugin/pom.xml @@ -5,7 +5,7 @@ template com.github.terefang.template - 2021.5.360 + 2021.5.361 4.0.0