sdedic commented on a change in pull request #2731:
URL: https://github.com/apache/netbeans/pull/2731#discussion_r579038594
##########
File path:
java/maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java
##########
@@ -100,10 +103,28 @@
/**
* support for executing maven, externally on the command line.
+ * <b>Since 2/1.144</b>, the {@link LateBoundPrerequisitesChecker} registered
in Maven projects for JAR packaging by default supports
+ * {@link ExplicitProcessParameters} API. The caller of the execute-type
action can request to append or replace VM or user
+ * application parameters. The parameters recorded in the POM.xml or NetBeans
action mappings are augmented according to that
+ * instructions:
+ * <ul>
+ * <li><b>launcherArgs</b> are mapped to VM arguments (precede main class name)
+ * <li><b>args</b> are mapped to user application arguments (after main class
name)
+ * </ul>
+ * VM parameters injected by {@link StartupExtender} API are not affected by
this feature.
+ * <p>
+ * Example use:
+ * {@codesnippet MavenExecutionTestBase#samplePassAdditionalVMargs}
+ * The example will <b>append</b> <code>-DvmArg2=2</code> to VM arguments and
<b>replaces</b> all user
+ * program arguments with <code>"paramY"</code>. Append mode can be controlled
using {@link ExplicitProcessParameters.Builder#appendArgs} or
+ * {@link ExplicitProcessParameters.Builder#appendPriorityArgs}.
+ *
* @author Milos Kleint ([email protected])
+ * @author Svata Dedic ([email protected])
*/
public class MavenCommandLineExecutor extends AbstractMavenExecutor {
static final String ENV_PREFIX = "Env."; //NOI18N
+ static final String INTERNAL_PREFIX = "NbIde."; //NOI18N
Review comment:
Documented in 9d7654ce75
----------------------------------------------------------------
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.
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