forked from wildfly/wildfly
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.bat
96 lines (69 loc) · 2.68 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@echo off
REM ======================================================================
REM
REM This is the main entry point for the build system.
REM
REM Users should be sure to execute this file rather than 'mvn' to ensure
REM the correct version is being used with the correct configuration.
REM
REM ======================================================================
REM
REM $Id: build.bat 105735 2010-06-04 19:45:13Z pgier $
REM
REM Authors:
REM Jason Dillon <[email protected]>
REM Sacha Labourey <[email protected]>
REM
REM ******************************************************
REM Ignore the MAVEN_HOME variable: we want to use *our*
REM Maven version and associated JARs.
REM ******************************************************
REM Ignore the users classpath, cause it might mess
REM things up
REM ******************************************************
SETLOCAL
set CLASSPATH=
set M2_HOME=
set MAVEN_HOME=
REM ******************************************************
REM - "for" loops have been unrolled for compatibility
REM with some WIN32 systems.
REM ******************************************************
set NAMES=tools;tools\maven;tools\apache\maven
set SUBFOLDERS=.;..;..\..;..\..\..;..\..\..\..
REM ******************************************************
REM ******************************************************
SET EXECUTED=FALSE
for %%i in (%NAMES%) do call :subLoop %%i %1 %2 %3 %4 %5 %6
goto :EOF
REM ******************************************************
REM ********* Search for names in the subfolders *********
REM ******************************************************
:subLoop
for %%j in (%SUBFOLDERS%) do call :testIfExists %%j\%1\bin\mvn.bat %2 %3 %4 %5 %6 %7
goto :EOF
REM ******************************************************
REM ************ Test if Maven Batch file exists ***********
REM ******************************************************
:testIfExists
if exist %1 call :BatchFound %1 %2 %3 %4 %5 %6 %7 %8
goto :EOF
REM ******************************************************
REM ************** Batch file has been found *************
REM ******************************************************
:BatchFound
if (%EXECUTED%)==(FALSE) call :ExecuteBatch %1 %2 %3 %4 %5 %6 %7 %8
set EXECUTED=TRUE
goto :EOF
REM ******************************************************
REM ************* Execute Batch file only once ***********
REM ******************************************************
:ExecuteBatch
echo Calling %1 %2 %3 %4 %5 %6 %7 %8
set GOAL=%2
if "%GOAL%"=="" set GOAL=install
REM run smoke tests by default
set SMOKE_TESTS=-Dintegration.module -Dsmoke.integration.tests
call %1 %GOAL% %SMOKE_TESTS% %3 %4 %5 %6 %7 %8
:end
if "%NOPAUSE%" == "" pause