Skip to content

Commit

Permalink
Merge pull request #2957 from malakaganga/fix_name_extraction
Browse files Browse the repository at this point in the history
Fix name extraction failure
  • Loading branch information
malakaganga authored Aug 29, 2023
2 parents fc668f4 + e96aafd commit a89381f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public boolean accept(File dir, String name) {
String packageName = retrievePackageName(connectorExtractedPath);

// Retrieve connector name
String connectorName = connectorZip.getName().substring(0, connectorZip.getName().indexOf('-'));
String connectorName = connectorZip.getName().substring(0, connectorZip.getName().lastIndexOf('-'));
QName qualifiedName = new QName(packageName, connectorName);
File importFile = new File(importsDir, qualifiedName.toString() + ".xml");

Expand Down

0 comments on commit a89381f

Please sign in to comment.