-
Notifications
You must be signed in to change notification settings - Fork 1
/
make.bat
41 lines (28 loc) · 871 Bytes
/
make.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
echo on
set t=%temp%\build-dir-deadline-reminder
set actualDir=%CD%
rmdir %t%\target /s /q
mkdir %t%\target
if x%java_home%x == xx set java_home=c:\programs\currentJDK
%java_home%\bin\java -version 2>src\main\resources\make-info.txt
type src\main\resources\make-info.txt
if %errorlevel% == 1 goto noJDK
echo %date% >src\main\resources\version.txt
robocopy src %t%\src *.* /mir
copy pom.xml %t% /y
cd /D %t%
call mvn -U clean install source:jar
if %errorlevel% == 1 goto ende
echo on
del %actualDir%\target\*.jar
copy target\*.jar %actualDir%\target\ /y
goto ende
:noJDK
echo off
echo ERROR:
echo there is no link to the newest JDK in c:\programs\currentJDK
echo you can create it via c:\Programs\SysinternalsSuite\junction.exe c:\programs\currentjdk "%currentjdk%"
echo see https://technet.microsoft.com/de-de/sysinternals
goto ende
:ende
cd /D %actualDir%