forked from microsoft/azure-tools-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_eclipse.bat
More file actions
37 lines (28 loc) · 1.31 KB
/
build_eclipse.bat
File metadata and controls
37 lines (28 loc) · 1.31 KB
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
@ECHO OFF
REM --------------------------------------------------------------------------------------------
REM Copyright (c) Microsoft Corporation. All rights reserved.
REM Licensed under the MIT License. See License.txt in the project root for license information.
REM --------------------------------------------------------------------------------------------
CD %~dp0\..
CALL mvn -v
IF NOT %ERRORLEVEL% EQU 0 ECHO Maven not found. Please install Maven first. && EXIT /b 1
CALL :MAVEN_BUILD common-utils .\Utils
IF NOT %ERRORLEVEL% EQU 0 GOTO EOF
CALL :MAVEN_BUILD libraries-for-azuretools-sdk .\PluginsAndFeatures\AddLibrary\AzureLibraries
IF NOT %ERRORLEVEL% EQU 0 GOTO EOF
CALL :MAVEN_BUILD azure-toolkit-for-eclipse .\PluginsAndFeatures\azure-toolkit-for-eclipse
IF NOT %ERRORLEVEL% EQU 0 GOTO EOF
GOTO SUCCESS
:MAVEN_BUILD
ECHO -------------------------------------------------------------------------------
ECHO building %1
ECHO -------------------------------------------------------------------------------
CALL mvn clean install -f %2
IF NOT %ERRORLEVEL% EQU 0 ECHO Fail to build %1... && EXIT /b 1
GOTO EOF
:SUCCESS
ECHO -------------------------------------------------------------------------------
ECHO ALL BUILD SUCCESS
ECHO -------------------------------------------------------------------------------
GOTO EOF
:EOF