Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2017-05-09 21:57:02 +0000
committerMarkus Keller2017-05-09 21:57:02 +0000
commit7606f039d955312f32fd8afbd4aee9ab4de2a7d7 (patch)
treec8708e5ff11fb015379336845d434bd7334e3af3
parent0520eeee43a1ae7d13d56fce514b0ea3317cf675 (diff)
downloadeclipse.platform-7606f039d955312f32fd8afbd4aee9ab4de2a7d7.tar.gz
eclipse.platform-7606f039d955312f32fd8afbd4aee9ab4de2a7d7.tar.xz
eclipse.platform-7606f039d955312f32fd8afbd4aee9ab4de2a7d7.zip
Bug 515929: Version comparison in Ant does not support two numbers in minor positionY20170511-1000I20170510-2000I20170510-0800I20170509-2000
-rw-r--r--ant/org.eclipse.ant.launching/lib/remote.jarbin44019 -> 43959 bytes
-rw-r--r--ant/org.eclipse.ant.launching/remote/org/eclipse/ant/internal/launching/remote/InternalAntRunner.java13
2 files changed, 9 insertions, 4 deletions
diff --git a/ant/org.eclipse.ant.launching/lib/remote.jar b/ant/org.eclipse.ant.launching/lib/remote.jar
index 6e4c67181..161d741aa 100644
--- a/ant/org.eclipse.ant.launching/lib/remote.jar
+++ b/ant/org.eclipse.ant.launching/lib/remote.jar
Binary files differ
diff --git a/ant/org.eclipse.ant.launching/remote/org/eclipse/ant/internal/launching/remote/InternalAntRunner.java b/ant/org.eclipse.ant.launching/remote/org/eclipse/ant/internal/launching/remote/InternalAntRunner.java
index 0daf97360..4a5c45ade 100644
--- a/ant/org.eclipse.ant.launching/remote/org/eclipse/ant/internal/launching/remote/InternalAntRunner.java
+++ b/ant/org.eclipse.ant.launching/remote/org/eclipse/ant/internal/launching/remote/InternalAntRunner.java
@@ -664,8 +664,8 @@ public class InternalAntRunner {
}
}
- /*
- * Returns a String representation of the Ant version number as specified in the version.txt file.
+ /**
+ * @return a String representation of the Ant version number as specified in the version.txt file
*/
private String getAntVersionNumber() throws BuildException {
if (antVersionNumber == null) {
@@ -687,7 +687,7 @@ public class InternalAntRunner {
return antVersionNumber;
}
- /*
+ /**
* Returns whether the given version is compatible with the current Ant version. A version is compatible if it is less than or equal to the
* current version.
*/
@@ -698,7 +698,12 @@ public class InternalAntRunner {
return osgiVersion.compareTo(osgiComparison) >= 0;
}
- class Version {
+ /**
+ * Copy of org.osgi.framework.Version.
+ * <p>
+ * We can't know how Ant version numbers will evolve in the future, but the OSGi version number format looks like a good bet.
+ */
+ private static class Version {
private final int major;
private final int minor;
private final int micro;

Back to the top