-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.bat
54 lines (47 loc) · 1.64 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
setlocal
echo.
call java -version
echo.
SET JAVA_HOME=D:\__SYNC1\Softwares\Java\jdk1.7.0_79
set settings=D:\__SYNC0\00WORK\ide-config\settings-local.xml
echo ------------------------- maven info -------------------------------
call mvn -v
if [%1]==[] goto HELP
if [%1]==[--help] goto HELP
if [%1]==[deploy] goto DEPLOY
:: ****************************************************************************
:: Title : xxxxx
::
:: Usage : xxxxx
::
:: Args : xxxxx
::
:: E.g. :
::
:: Notes :
::
:: Requires:
::
:: Returns:
::
:: Author: Zollty Tsou *
:: Version: 1.0.0 *
:: Date: 02/28/2018 *
:: Link: [email protected] *
:: ****************************************************************************
:: add "-Pjretty-doc" to generate java docs
echo ------------------------- starting to install -------------------------
call mvn clean install -Pjretty-release --settings %settings%
goto EOF
:DEPLOY
echo ------------------------- starting to deploy -------------------------
call mvn clean deploy -Pjretty-release -Plocal-deploy --settings %settings%
goto EOF
:HELP
echo.
echo Usage:
echo input 'deploy' to deploy to local repo.
echo input other chars to execute install.
echo.
:EOF