[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] MANIFEST not working

2012/9/26 Robin Rosenberg <robin.rosenberg@xxxxxxxxxx>

Regarding Change I94fa432c: Revert "The constructor CmdLineException(String) is deprecated"

So I then though we could set the required version to 2.0.12 in MANIFEST.MF and get rid
of the warnings. I made this change on the commit that was reverted so I expected to
get a ton of compilation errors in Eclipse. That did not happen.

Does Eclipse ignore versions in MANIFEST.MF?

-- robin

diff --git a/org.eclipse.jgit.pgm.test/META-INF/MANIFEST.MF b/org.eclipse.jgit.pgm.test/META-INF/MANIFEST.MF
index a53167a..b0d4a16 100644
--- a/org.eclipse.jgit.pgm.test/META-INF/MANIFEST.MF
+++ b/org.eclipse.jgit.pgm.test/META-INF/MANIFEST.MF
@@ -19,5 +19,5 @@ Import-Package: org.eclipse.jgit.api;version="[2.2.0,2.3.0)",
 org.eclipse.jgit.util.io;version="[2.2.0,2.3.0)",
 org.hamcrest.core;bundle-version="[1.1.0,2.0.0)",
 org.junit;version="[4.4.0,5.0.0)",
- org.kohsuke.args4j;version="[2.0.12,2.1.0)",
- org.kohsuke.args4j.spi;version="[2.0.12,2.1.0)"
+ org.kohsuke.args4j;version="2.0.12",

2.0.12 is equivalent to [2.0.12,) i.e. this would accept 2.0.12 or higher
so if you want to pin it to 2.0.12 you need to set version="[2.0.12,2.0.12)"

though I am not sure if this answers your question
Â
+ org.kohsuke.args4j.spi;version="[2.0.12,2.0.12]"
diff --git a/org.eclipse.jgit.pgm/META-INF/MANIFEST.MF b/org.eclipse.jgit.pgm/META-INF/MANIFEST.MF
index df026e0..f43ca57 100644
--- a/org.eclipse.jgit.pgm/META-INF/MANIFEST.MF
+++ b/org.eclipse.jgit.pgm/META-INF/MANIFEST.MF
@@ -29,8 +29,8 @@ Import-Package: org.eclipse.jgit.api;version="[2.2.0,2.3.0)",
 org.eclipse.jgit.treewalk.filter;version="[2.2.0,2.3.0)",
 org.eclipse.jgit.util;version="[2.2.0,2.3.0)",
 org.eclipse.jgit.util.io;version="[2.2.0,2.3.0)",
- org.kohsuke.args4j;version="[2.0.12,2.1.0)",
- org.kohsuke.args4j.spi;version="[2.0.12,2.1.0)"
+ org.kohsuke.args4j;version="2.0.12",
+ org.kohsuke.args4j.spi;version="2.0.12"
ÂBundle-ActivationPolicy: lazy
ÂExport-Package: org.eclipse.jgit.pgm;version="2.2.0";
 Âuses:="org.eclipse.jgit.lib,
diff --git a/org.eclipse.jgit.pgm/pom.xml b/org.eclipse.jgit.pgm/pom.xml
index a889a54..8cc732c 100644
--- a/org.eclipse.jgit.pgm/pom.xml
+++ b/org.eclipse.jgit.pgm/pom.xml
@@ -69,7 +69,7 @@
  Â<dependency>
   Â<groupId>args4j</groupId>
   Â<artifactId>args4j</artifactId>
- Â Â Â<version>[2.0.12,2.1.0)</version>
+ Â Â Â<version>2.0.12</version>
  Â</dependency>

  Â<dependency>
_______________________________________________
jgit-dev mailing list
jgit-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jgit-dev

--
Matthias