[josm-dev] [patch] Manifest not found
Stephan
osm at stephans-server.de
Sun Dec 14 12:34:31 GMT 2008
Hi,
please submit to josm.
This fixes bug #1841
http://josm.openstreetmap.de/ticket/1841
Explanation:
Builds out of SVN use a different method of inserting version
information. Here the manifest is used.
The classloader trys to locate the Manifest in classpath order. It is
not guaranteed that the right manifest is retrieved.
It should use this one:
jar:file:/C:/Documents%20and%20Settings/Stephan/workspace/josm/core/dist/josm-custom.jar!/META-INF/MANIFEST.MF
but found that one first:
file:/C:/Program%20Files/Java/jre6/lib/ext/QTJava.zip!/META-INF/MANIFEST.MF
The patch fixes this by first determining the location of the jar
containing "our" class file.
Once the "official" build process also uses the manifest for version
information the call trying to fetch "REVISION" can be removed.
Another fix was the regular expression retrieving the version. This
ignored the "SVN" suffix added by the build process.
Stephan
More information about the josm-dev
mailing list