usmart-maven-plugin.0.0.3.source-code.server.cmd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zusmart-maven-plugin Show documentation
Show all versions of zusmart-maven-plugin Show documentation
项目打包maven插件,使用此插件可直接打包成zip文件,包含引用及启动脚本,可直接用户生产
The newest version!
@echo off
setlocal
REM ZuSmart Starting
REM see: http://www.zusmart.com
set JAVA_HOME=D:\Java\JDK
SET JAVA_MAIN=com.zusmart.sample.App
set ZUSMART_CONF=%~dp0%..\conf
set CLASSPATH=%ZUSMART_CONF%
SET CLASSPATH=%~dp0..\classes;%~dp0..\lib\*;%CLASSPATH%
if not defined JAVA_HOME (
echo ERROR: JAVA_HOME is not set
goto :ecf
)
SET %JAVA_HOME=%JAVA_HOME:"=%
if not exist "%JAVA_HOME%"\bin\java.exe (
echo Error: JAVA_HOME is incorrectly set.
goto :eof
)
if "%JAVA_HOME:~-1%" EQU "\" set "JAVA_HOME=%JAVA_HOME:~0,-1%"
SET JAVA="%JAVA_HOME%"\bin\java
echo %CLASSPATH%
call %JAVA% -cp %CLASSPATH% %JAVA_MAIN% %*
endlocal