rozšířené-atributy.sh
branchv_0
changeset 39 ec0e970e0830
parent 15 984cba2864e5
child 44 c43c96b0ab1b
     1.1 --- a/rozšířené-atributy.sh	Sat Dec 16 19:09:35 2023 +0100
     1.2 +++ b/rozšířené-atributy.sh	Sat Dec 16 20:13:13 2023 +0100
     1.3 @@ -1,11 +1,11 @@
     1.4  #!/bin/bash
     1.5  
     1.6 -JAVA_HOME="/opt/jdk1.7.0";
     1.7 -JAVA_BIN="${JAVA_HOME}/bin/java";
     1.8 +#JAVA_HOME="/opt/jdk1.7.0";
     1.9 +#JAVA_BIN="${JAVA_HOME}/bin/java";
    1.10 +JAVA_BIN="java";
    1.11  SWING_LAF="-Dswing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel";
    1.12 -JAR="java/rozsirene-atributy/dist/rozsirene-atributy.jar";
    1.13 +SWING_LAF="-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel";
    1.14 +VER="0.1-SNAPSHOT"
    1.15 +JAR="$(dirname $(realpath $0))/target/rozsirene-atributy-${VER}.jar";
    1.16  
    1.17 -# For English localization uncomment this:
    1.18 -# LANG="en_US.utf8";
    1.19 -
    1.20 -${JAVA_BIN} ${SWING_LAF} -jar ${JAR} "${1}";
    1.21 +${JAVA_BIN} ${SWING_LAF} -jar ${JAR} "${@}";