代码拉取完成,页面将自动刷新
同步操作将从 翟鳳璽/mybatis-generator-gui 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
echo "[Requirement-Java] Requirement JDK 8.0+ and env of JAVA_HOME."
if [ -z "${JAVA_HOME}" ]; then
echo "[Requirement-Java] JAVA_HOME is not exists!"
echo "[Requirement-Java] Please check java is installed and set env of JAVA_HOME."
exit 1
else
echo "[Requirement-Java] JAVA_HOME: ${JAVA_HOME}"
fi
if [ ! -x "${JAVA_HOME}/bin/javac" ]; then
echo "[Requirement-Java] Java not found!"
echo "[Requirement-Java] Please install JDK 8.0+ or JRE 8.0+"
exit 1
fi
JAVA_VERSION=`java -version 2>&1 |awk 'NR==1{ gsub(/"/,""); print $3 }'`
echo "[Requirement-Java] JAVA_VERSION: ${JAVA_VERSION}"
if [[ "$JAVA_VERSION" < "1.8" ]]; then
echo "[Requirement-Java] Please install JDK 8.0+ or JRE 8.0+"
exit 1
fi
echo "[Requirement-Maven] Requirement install Maven and set the PATH."
if [ -z "${MAVEN_HOME}" ]; then
echo "[Requirement-Maven] MAVEN_HOME is not exists!"
echo "[Requirement-Maven] Please check maven is installed and set env of MAVEN_HOME."
exit 1
else
echo "[Requirement-Java] MAVEN_HOME: ${MAVEN_HOME}"
fi
cd `dirname $0`
BIN_DIR=`pwd`
echo "[Requirement-BIN_DIR] BIN_DIR: ${BIN_DIR}"
mvn clean jfx:jar
if [ $? -ne 0 ]; then
echo "Quit because maven install fail"
exit -1
fi
cp start.sh "${BIN_DIR}/target/jfx/app"
if [ $? -ne 0 ]; then
echo "Copy start.sh fail"
exit -1
fi
cd "${BIN_DIR}/target/jfx/app"
tar -zcvf mybatis-generator-gui-no-jre.tar.gz *
if [ $? -ne 0 ]; then
echo "tar jar fail"
exit -1
fi
cp "${BIN_DIR}/target/jfx/app/mybatis-generator-gui-no-jre.tar.gz" "${BIN_DIR}"
if [ $? -ne 0 ]; then
echo "Copy jar fail"
exit -1
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。