-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathMetaData.groovy
102 lines (97 loc) · 3.6 KB
/
MetaData.groovy
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
96
97
98
99
100
101
102
package common
class MetaData {
final String vendor
final String os
final String arch
final String variant
final Map variant_version
final VersionInfo version
final String scmRef
final String buildRef
final String version_data
final String full_version_output
final String makejdk_any_platform_args
final String configure_arguments
final String make_command_args
final String BUILD_CONFIGURATION_param
final String openjdk_built_config
final String openjdk_source
final String build_env_docker_image_digest
final String dependency_version_alsa
final String dependency_version_freetype
final String dependency_version_freemarker
String binary_type
String sha256
MetaData(
String vendor,
String os,
String scmRef,
String buildRef,
VersionInfo version,
String version_data,
String variant,
Map variant_version,
String arch,
String full_version_output,
String makejdk_any_platform_args,
String configure_arguments,
String make_command_args,
String BUILD_CONFIGURATION_param,
String openjdk_built_config,
String openjdk_source,
String build_env_docker_image_digest,
String dependency_version_alsa,
String dependency_version_freetype,
String dependency_version_freemarker
) {
this.vendor = vendor
this.os = os
this.scmRef = scmRef
this.buildRef = buildRef
this.version = version
this.version_data = version_data
this.variant = variant
this.variant_version = variant_version
this.arch = arch
this.full_version_output = full_version_output
this.makejdk_any_platform_args = makejdk_any_platform_args
this.configure_arguments = configure_arguments
this.make_command_args = make_command_args
this.BUILD_CONFIGURATION_param = BUILD_CONFIGURATION_param
this.openjdk_built_config = openjdk_built_config
this.openjdk_source = openjdk_source
this.build_env_docker_image_digest = build_env_docker_image_digest
this.dependency_version_alsa = dependency_version_alsa
this.dependency_version_freetype = dependency_version_freetype
this.dependency_version_freemarker = dependency_version_freemarker
}
Map asMap() {
def map = [
vendor : vendor,
os : os,
arch : arch,
variant : variant,
version : version,
scmRef : scmRef,
buildRef : buildRef,
version_data: version_data,
binary_type : binary_type,
sha256 : sha256,
full_version_output : full_version_output,
makejdk_any_platform_args : makejdk_any_platform_args,
configure_arguments : configure_arguments,
make_command_args : make_command_args,
BUILD_CONFIGURATION_param : BUILD_CONFIGURATION_param,
openjdk_built_config : openjdk_built_config,
openjdk_source : openjdk_source,
build_env_docker_image_digest : build_env_docker_image_digest,
dependency_version_alsa : dependency_version_alsa,
dependency_version_freetype : dependency_version_freetype,
dependency_version_freemarker : dependency_version_freemarker
]
if (variant_version) {
map.variant_version = variant_version
}
return map
}
}