forked from Samuel-VandePut/LASoT-Experiment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.bat
69 lines (54 loc) · 1.48 KB
/
install.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
@echo off
rem *******Begin Comment**************
rem JDK installation
rem *******End Comment**************
setlocal
cd /d %~dp0
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto SP2
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:SP2
rem *******Begin Comment**************
rem Reneri Installation
rem *******End Comment**************
cd tarshes-descartes-reneri
call mvnw.cmd clean install
rem *******Begin Comment**************
rem 2048 Installation
rem *******End Comment**************
cd../2048
call mvnw.cmd clean install
rem *******Begin Comment**************
rem Set Path environment for maven wrapper bin folder
rem *******End Comment**************
cd /d %~dp0
echo %PATH% > oldpath.txt
setx PATH "%cd%\apache-maven-3.6.0\bin;%PATH%" /m
:SP3
rem *******Begin Comment**************
rem Install LASoT extension
rem *******End Comment**************
cd /d %~dp0
call code --install-extension lasot-0.0.1.vsix
call code --install-extension vscjava.vscode-maven.vsix
cd 2048
code .
cd ..
:error
pause
exit/b