Would you like ident keywords to show up in the jar file for version comparison?

"Wolfgang Fahl" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Organization BITPlan GmbH
Message-ID <[email protected]>
Dear httpunit developers,

I've just modified the subversion repository to activate 
the $Id$ feature for all files where this was not the 
case yet with the following script:

for f in `find . -name "*.java"`
do
  grep "\$Id" $f | grep -v java
  if [ $? -eq 0  ]
  then
    echo $f
    svn propset svn:keywords Id $f
  fi
done

Now all the sources where $Id$ was used 
contain comment lines like:
$Id: RequestTargetTest.java 619 2004-06-13 20:57:28Z russgold $


In my own projects i make sure the Id Header keywords 
are also visible in the jar by:
- not compressing the jar
and using statements like:
/**
 * ID for GNU Revision Control System - will show in the class file and 
 * can be looked for using the ident command of RCS
 */
	private final static String RCSID="$Id: JavaMapperImpl.java,v 1.13 2008/02/05 10:56:17 wf Exp $";


With the RCS command "ident" it's then possible to look 
for the ids of the sources like this:
	ident smartGenerator.jar
Y:\release>ident smartGenerator.jar | grep JavaMapper
     $Id: JavaMapper.java,v 1.10 2008/02/05 10:56:17 wf Exp $
     $Id: JavaMapperImpl.java,v 1.13 2008/02/05 10:56:17 wf Exp $


of course this adds about 80 chars per class to the size 
of the jar file. At the current 525 KByte we'd have to 
expect about 40 KByte extra for this "feature".

The benefit is that personal patched jar files can be 
clearly compared against the "official" version with a 
simple text diff of two "ident" results.

What do you think?

Yours
  Wolfgang

BITPlan - smart solutions
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 1805 - BITPLAN / +49 1805 248 752, Fax +49 2154 811-481
Web: http://www.bitplan.de
bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, 
Geschäftsführer: Wolfgang Fahl

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.