You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by en...@apache.org on 2021/10/12 21:33:30 UTC

[netbeans] branch master updated: The set of arguments and launcher arguments is corrected.

This is an automated email from the ASF dual-hosted git repository.

entl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new a62f3b5  The set of arguments and launcher arguments is corrected.
a62f3b5 is described below

commit a62f3b5d5471202cfdc990a8ee80904477fb30ef
Author: Martin Entlicher <ma...@oracle.com>
AuthorDate: Tue Oct 12 19:56:01 2021 +0200

    The set of arguments and launcher arguments is corrected.
---
 .../modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java
index a30c6c2..4c61774 100644
--- a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java
+++ b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java
@@ -352,10 +352,10 @@ public abstract class NbLaunchDelegate {
         Object envObj = launchArguments.get("env");
         Map<String, String> env = envObj != null ? (Map<String, String>) envObj : Collections.emptyMap();
         ExplicitProcessParameters.Builder bld = ExplicitProcessParameters.builder();
-        if (!args.isEmpty()) {
+        if (!vmArgs.isEmpty()) {
             bld.launcherArgs(vmArgs);
         }
-        if (!vmArgs.isEmpty()) {
+        if (!args.isEmpty()) {
             bld.args(args);
         }
         bld.replaceArgs(false);

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists