akronenw commented on code in PR #5597:
URL: https://github.com/apache/netbeans/pull/5597#discussion_r1128447561


##########
enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/ide/WildflyStartRunnable.java:
##########
@@ -201,6 +201,12 @@ private void setupEnvironment(final InstanceProperties ip, 
Environment env) {
             javaOptsBuilder.append(" -Djava.net.preferIPv4Stack=true 
-Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true");
         }
 
+        if(ip.getProperty(WildflyPluginProperties.PROPERTY_PORT_OFFSET) != 
null ) {
+            int portOffSet = 
Integer.parseInt(ip.getProperty(WildflyPluginProperties.PROPERTY_PORT_OFFSET));
+            if(portOffSet > 0 ) {
+                javaOptsBuilder.append(" 
-Djboss.socket.binding.port-offset=").append(portOffSet);
+            }

Review Comment:
   @ehsavoie does this mean, that if a user enters the valid port offset `0` it 
will be ignored?
   If so, the default from the config will be used and the server not connected 
to NB.



-- 
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

Reply via email to