File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
cmd/mendix-userlib-cleaner Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,8 @@ func parseManifest(filePath string, text string) JarProperties {
201
201
202
202
key := pair [0 ]
203
203
value := pair [1 ]
204
- if key == "Bundle-SymbolicName" || key == "Extension-Name" {
204
+ // Automatic-Module-Name - used in org.apache.httpcomponents.httpclient / org.apache.httpcomponents.client5.httpclient5
205
+ if key == "Bundle-SymbolicName" || key == "Extension-Name" || key == "Automatic-Module-Name" {
205
206
jarProp .packageName = value
206
207
} else if key == "Bundle-Version" || key == "Implementation-Version" {
207
208
jarProp .version = value
@@ -216,7 +217,10 @@ func parseManifest(filePath string, text string) JarProperties {
216
217
continue
217
218
}
218
219
jarProp .name = value
219
- jarProp .packageName = value
220
+ if jarProp .packageName == "" {
221
+ // only use Bundle-Name as packageName if no alternative exists
222
+ jarProp .packageName = value
223
+ }
220
224
}
221
225
}
222
226
return jarProp
You can’t perform that action at this time.
0 commit comments