You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/09/16 18:45:02 UTC

[maven-verifier] branch MSHARED-1135 created (now a058515)

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

sjaranowski pushed a change to branch MSHARED-1135
in repository https://gitbox.apache.org/repos/asf/maven-verifier.git


      at a058515  [MSHARED-1135] deprecate mavenDebug option

This branch includes the following new commits:

     new a058515  [MSHARED-1135] deprecate mavenDebug option

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-verifier] 01/01: [MSHARED-1135] deprecate mavenDebug option

Posted by sj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch MSHARED-1135
in repository https://gitbox.apache.org/repos/asf/maven-verifier.git

commit a0585150293022effc3297792ca527abf4ca62c3
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Fri Sep 16 20:44:43 2022 +0200

    [MSHARED-1135] deprecate mavenDebug option
---
 .../java/org/apache/maven/shared/verifier/Verifier.java  | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/shared/verifier/Verifier.java b/src/main/java/org/apache/maven/shared/verifier/Verifier.java
index 995e8dd..0eaaaa6 100644
--- a/src/main/java/org/apache/maven/shared/verifier/Verifier.java
+++ b/src/main/java/org/apache/maven/shared/verifier/Verifier.java
@@ -110,7 +110,7 @@ public class Verifier
 
     private String mavenHome;
 
-    // will launch mvn with --debug 
+    // will launch mvn with -X
     private boolean mavenDebug = false;
 
     /**
@@ -1292,7 +1292,7 @@ public class Verifier
 
         if ( this.mavenDebug )
         {
-            args.add( "--debug" );
+            args.add( "-X" );
         }
 
         /*
@@ -1792,11 +1792,23 @@ public class Verifier
         }
     }
 
+    /**
+     * @deprecated will be removed without replacement
+     */
+    @Deprecated
     public boolean isMavenDebug()
     {
         return mavenDebug;
     }
 
+    /**
+     * For replacement please use:
+     * <pre>
+     *     verifier.addCliArgument( "-X" );
+     * </pre>
+     *
+     * @deprecated will be removed without replacement.
+     */
     public void setMavenDebug( boolean mavenDebug )
     {
         this.mavenDebug = mavenDebug;