maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khmarba...@apache.org
Subject [03/18] maven git commit: use "java -jar" command
Date Sun, 04 Jun 2017 18:05:02 GMT
use "java -jar" command

Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/567af0d9
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/567af0d9
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/567af0d9

Branch: refs/heads/MNG-6123-detect-self-references
Commit: 567af0d964cf823b275300aa4671b84a28da5baa
Parents: 6a93bbe
Author: Hervé Boutemy <hboutemy@apache.org>
Authored: Wed Apr 12 03:59:44 2017 +0200
Committer: Hervé Boutemy <hboutemy@apache.org>
Committed: Wed Apr 12 03:59:44 2017 +0200

----------------------------------------------------------------------
 .../apache/maven/artifact/versioning/ComparableVersion.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/567af0d9/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
----------------------------------------------------------------------
diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
b/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
index e1fc5f0..105d9b5 100644
--- a/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
+++ b/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
@@ -470,11 +470,12 @@ public class ComparableVersion
         return canonical.hashCode();
     }
 
+    // CHECKSTYLE_OFF: LineLength
     /**
      * Main to test version parsing and comparison.
      * <p>
-     * Checks how "1.2.7" compares to "1.2-SNAPSHOT", for example, you can issue
-     * <code>java -cp ${maven.repo.local}/org/apache/maven/maven-artifact/${maven.version}/maven-artifact-${maven.version}.jar
org.apache.maven.artifact.versioning.ComparableVersion "1.2.7" "1.2-SNAPSHOT"</code>
+     * To check how "1.2.7" compares to "1.2-SNAPSHOT", for example, you can issue
+     * <pre>java -jar ${maven.repo.local}/org/apache/maven/maven-artifact/${maven.version}/maven-artifact-${maven.version}.jar
"1.2.7" "1.2-SNAPSHOT"</pre>
      * command to command line. Result of given command will be something like this:
      * <pre>
      * Display parameters as parsed by Maven (in canonical form) and comparison result:
@@ -486,6 +487,7 @@ public class ComparableVersion
      * @param args the version strings to parse and compare. You can pass arbitrary number
of version strings and always
      * two adjacent will be compared
      */
+    // CHECKSTYLE_ON: LineLength
     public static void main( String... args )
     {
         System.out.println( "Display parameters as parsed by Maven (in canonical form) and
comparison result:" );


Mime
View raw message