maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micha...@apache.org
Subject [01/18] maven git commit: Added some javadoc [Forced Update!]
Date Fri, 12 May 2017 19:49:05 GMT
Repository: maven
Updated Branches:
  refs/heads/MNG-6169_2/not-updated-MJAR-MCOMPILER 3cb6dc2f1 -> c7cc7b3ae (forced update)


Added some javadoc

Added javadoc help for making easier to compare two versions in command line.

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

Branch: refs/heads/MNG-6169_2/not-updated-MJAR-MCOMPILER
Commit: 5b3c27c917e378c58732635905e201531648f2b9
Parents: 87cf1ee
Author: LuboVarga <lubomir.varga@nike.sk>
Authored: Mon Mar 13 13:23:04 2017 +0100
Committer: Michael Osipov <michaelo@apache.org>
Committed: Fri May 12 21:45:58 2017 +0200

----------------------------------------------------------------------
 .../maven/artifact/versioning/ComparableVersion.java   | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/5b3c27c9/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 5222871..0ae4acb 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
@@ -472,8 +472,19 @@ public class ComparableVersion
 
     /**
      * Main to test version parsing and comparison.
+     * <p>
+     * To check how "1.2.7" compares to "1.2-SNAPSHOT" for example, you can issue
+     * <code>java -cp ~/.m2/repository/org/apache/maven/maven-artifact/3.3.9/maven-artifact-3.3.9.jar
org.apache.maven.artifact.versioning.ComparableVersion "1.2.7" "1.2-SNAPSHOT"</code>
+     * command to commandline. Result of given command will be something like this:
+     * <pre
+     * Display parameters as parsed by Maven (in canonical form) and comparison result:
+     * 1. 1.2.7 == 1.2.7
+     *    1.2.7 > 1.2-SNAPSHOT
+     * 2. 1.2-SNAPSHOT == 1.2-snapshot
+     * </pre>
      *
-     * @param args the version strings to parse and compare
+     * @param args the version strings to parse and compare. You can pass arbitrary number
of version strings and always
+     * two adjacent will be compared
      */
     public static void main( String... args )
     {


Mime
View raw message