Skip to content

Commit

Permalink
Merge pull request #14 from recktenwaldfabian/main
Browse files Browse the repository at this point in the history
  • Loading branch information
xiwenc authored Aug 22, 2024
2 parents d9ff5cc + 5133f2f commit 6ca40e2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/mendix-userlib-cleaner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ func parseManifest(filePath string, text string) JarProperties {

key := pair[0]
value := pair[1]
if key == "Bundle-SymbolicName" || key == "Extension-Name" {
// Automatic-Module-Name - used in org.apache.httpcomponents.httpclient / org.apache.httpcomponents.client5.httpclient5
if key == "Bundle-SymbolicName" || key == "Extension-Name" || key == "Automatic-Module-Name" {
jarProp.packageName = value
} else if key == "Bundle-Version" || key == "Implementation-Version" {
jarProp.version = value
Expand All @@ -216,7 +217,10 @@ func parseManifest(filePath string, text string) JarProperties {
continue
}
jarProp.name = value
jarProp.packageName = value
if jarProp.packageName == "" {
// only use Bundle-Name as packageName if no alternative exists
jarProp.packageName = value
}
}
}
return jarProp
Expand Down

0 comments on commit 6ca40e2

Please sign in to comment.