matthiasblaesing commented on code in PR #7055:
URL: https://github.com/apache/netbeans/pull/7055#discussion_r1493821233
##########
enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/ide/ui/WildflyPluginUtils.java:
##########
@@ -435,6 +431,29 @@ public static boolean isWildFlyJakartaEE(File serverPath) {
return jakartaDir.exists();
}
+ private static Attributes findManifestAttributes(File serverPath, String
slot) {
+ File productDir = new File(serverPath,
getModulesBase(serverPath.getAbsolutePath()) +
"org.jboss.as.product".replace('.', separatorChar) + separatorChar + slot);
+ File[] files = productDir.listFiles();
+ for (File file : files) {
+ try {
+ if
(file.getName().startsWith("wildfly-feature-pack-product-conf") &&
file.getName().endsWith(".jar")) {
+ JarFileSystem featurePackProductConfJar = new
JarFileSystem(file);
+ return
featurePackProductConfJar.getManifest().getMainAttributes();
+ }
+ } catch (Exception ignore) {
+ }
+ }
+ File manifestFile = new File(serverPath,
getModulesBase(serverPath.getAbsolutePath()) +
"org.jboss.as.product".replace('.', separatorChar) + separatorChar + slot +
separatorChar + "dir" + separatorChar + "META-INF" + separatorChar +
"MANIFEST.MF");
Review Comment:
```suggestion
File manifestFile = new File(productDir, "dir" + separatorChar +
"META-INF" + separatorChar + "MANIFEST.MF");
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists