You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "matthiasblaesing (via GitHub)" <gi...@apache.org> on 2024/02/18 18:37:50 UTC
Re: [PR] Adding support for Wildfly 31 [netbeans]
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists