ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1056042 - /ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/util/VersionRange.java
Date Thu, 06 Jan 2011 19:50:06 GMT
Author: hibou
Date: Thu Jan  6 19:50:06 2011
New Revision: 1056042

URL: http://svn.apache.org/viewvc?rev=1056042&view=rev
Log:
Add a constructor for range based on one version

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/util/VersionRange.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/util/VersionRange.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/util/VersionRange.java?rev=1056042&r1=1056041&r2=1056042&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/util/VersionRange.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/util/VersionRange.java Thu Jan  6 19:50:06
2011
@@ -256,6 +256,13 @@ public class VersionRange {
         this.endVersion = endVersion;
     }
 
+    public VersionRange(Version startVersion) {
+        this.startExclusive = false;
+        this.startVersion = startVersion;
+        this.endExclusive = true;
+        this.endVersion = null;
+    }
+
     public String toString() {
         return (startExclusive ? "(" : "[") + startVersion + ","
                 + (endVersion == null ? "" : endVersion.toString()) + (endExclusive ? ")"
: "]");



Mime
View raw message