-
Notifications
You must be signed in to change notification settings - Fork 11
/
licenses.bat
69 lines (56 loc) · 1.76 KB
/
licenses.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
echo %date% %time%
cd %0\..\..
set licenseDir=%~d0%~p03rd-party-licenses
if NOT exist %licenseDir% (
mkdir %licenseDir%
)
set mvnBaseCall=mvn -q license:aggregate-add-third-party -Dlicense.outputDirectory=%licenseDir% -DexcludeTransitiveDependencies=true -Dlicense.excludedGroups=org\.esa\.snap
echo Generating 3rd-party license file for ...
if exist snap-engine\pom.xml (
echo ... snap-engine ...
call %mvnBaseCall% -f snap-engine\pom.xml -Dlicense.thirdPartyFilename=SNAP-ENGINE-THIRD-PARTY.txt
if %errorlevel% neq 0 exit /B %errorlevel%
)
if exist snap-desktop\pom.xml (
echo ... snap-desktop ...
call %mvnBaseCall% -f snap-engine\pom.xml -Dlicense.thirdPartyFilename=SNAP-DESKTOP-THIRD-PARTY.txt
if %errorlevel% neq 0 exit /B %errorlevel%
)
if exist s1tbx\pom.xml (
echo ... s1tbx ...
cd s1tbx
call %mvnBaseCall% -Dlicense.thirdPartyFilename=S1TBX-THIRD-PARTY.txt
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist s2tbx\pom.xml (
echo ... s2tbx ...
cd s2tbx
call %mvnBaseCall% -Dlicense.thirdPartyFilename=S2TBX-THIRD-PARTY.txt
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist s3tbx\pom.xml (
echo ... s3tbx ...
cd s3tbx
call %mvnBaseCall% -Dlicense.thirdPartyFilename=S3TBX-THIRD-PARTY.txt
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist smos-box\pom.xml (
echo ... smos-box ...
cd smos-box
call %mvnBaseCall% -Dlicense.thirdPartyFilename=SMOS-BOX-THIRD-PARTY.txt
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist probavbox\pom.xml (
echo ... probavbox ...
cd probavbox
call %mvnBaseCall% -Dlicense.thirdPartyFilename=PROBAVBOX-THIRD-PARTY.txt
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
cd snap-installer
echo %date% %time%