[OpenLayers-Dev] including the version number *in* the header
comments of OpenLayers.js file
John R. Frank
john.frank at metacarta.com
Sat May 3 21:51:06 EDT 2008
> > Is there a reason not to include the version number *in* the header
> > comments of the OpenLayers.js file served from
> > http://www.openlayers.org/api/OpenLayers.org ?
>
> Is there a reason to include it? There are technical reasons to not do
> so (it would need a possibly error-prone sed script), and I don't know
> what it gains...
When someone copies the file named "OpenLayers.js" and a dir called "img/"
into some project, it currently has no version number visible. When
someone later encounters a bug or tries to access a feature built in a
later release of OpenLayers, they have to perform detective work to figure
out what version they are using... unless we do something like this.
Does it really have to be a sed script? Things like the copyright date
surely aren't done by a sed script :)
John
More information about the Dev
mailing list