Manifest processing (was RE: Krysalis-Version Resolving)
"Adam Jack" <[email protected]> Mon, 11 Aug 2003 12:08:04 -0600
| Newsgroups | gmane.comp.krysalis.user |
|---|---|
| Message-ID | <[email protected]> |
Ok, I gave it a test. Commons Logging has a manifest that looks like this: Manifest-Version: 1.0 Created-By: Apache Ant 1.5.1 Extension-Name: org.apache.commons.logging Specification-Vendor: Apache Software Foundation Specification-Version: 1.0 Implementation-Vendor: Apache Software Foundation Implementation-Version: 1.0.3 which was being ignored because it had no Specification-Title attribute. Manifest process was overly restrictive, I've loosened it up with some fallback values: // // Fallbacks... // if (null == specificationTitle) specificationTitle = name; if (null == implementationTitle) implementationTitle = specificationTitle; if (null == specificationVendor) specificationVendor = "Unnamed Vendor"; if (null == implementationVendor) implementationVendor = specificationVendor; if (null == implementationVersion) implementationVersion = specificationVersion; I've checked this in to CVS. We now get: >java org.krysalis.version.tool.VersionTool -i org.apache.commons.logging org.apache.commons.logging : 1.0.3 BTW: I've been having a bunch of problems w/ manifests recently, and I keep working to make the code more tolerant/flexible. All problem reports/feedback/suggestions welcomed. regards, Adam -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Adam Jack Sent: Monday, August 11, 2003 11:24 AM To: [email protected] Subject: RE: Krysalis-Version Resolving (was RE: First comments from a newbee) > - "VersionTool" -c says that it don't find the version of > org.apache.commons.logging with the jar file in classpath and version > information in the manifest file. Ok, here is some background: Opps the background: Much as the environment's brute force searches have become a basis for the registry (it pre-populates) -- I was hoping to have a more subtle approach for resolving. In a more perfect world one would have a uniquely loadable version for each resource, kinda like a class for a classloader. As such, one ought be able to say "get me the version for X" and get it. That said, what you are attempting ought work. Looking at the code we do check the registry if the version isn't found as a stamp, or as a package. Hmm, you know -- I did a lot of work on manifest's recently, it may have been a bug in the pre-release you downloaded. What does an environment dump (from VersionTool) show? Could you send it? regards Adam ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ krysalis-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/krysalis-users ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01