You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Stephane Chauvin <SC...@cardiff.com> on 2002/08/13 01:59:55 UTC

RE: [SUBMIT] SerialVer tasks

Hi all,
I worked on the suggestions that were made on the Serialver task and I would
like to propose my new code.
The main modification is about the replacement of the SUID declaration that
uses now a FilterReader.

The serialver task itself just calls the serialver executable provided by
the JDK and returns the result in a property. I am using the new
JavaEnvUtils.getJdkExecutable("serialver") method.

After working with this Java feature, I think it is very useful to have the
following FilterReaders, in order to insert or remove the SUID declaration:

GetClassname FilterReader: get the classname and the package name of a class
from its source code.
CommentSUID FilterReader: Put in comment the SUID declaration.
ReplaceSUID FilterReader: Insert the SUID declaration.

I propose to add all these task/FilterReaders in the optional package. All
classes are compiling with the JDK1.1.8 and the 2002-08-12 build. The
package encloses documentation as well TestCases for each class.

I know that it is not trivial to figure out how works the SUID declaration.
So I added in the documentation a short explanation and a full example that
shows how to put together these task/FilterReaders. This target example is
also tested in the TestCase. Actually it is what I am using in my project.

I will appreciate if you can review this second proposition. Let me know
what you think about it.

Thanks,
Stephane

-----Original Message-----
From: bugzilla@apache.org [mailto:bugzilla@apache.org]
Sent: Monday, August 12, 2002 4:59 PM
To: ant-dev@jakarta.apache.org
Subject: DO NOT REPLY [Bug 7901] - [SUBMIT] SerialVer tasks


DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7901>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7901

[SUBMIT] SerialVer tasks





------- Additional Comments From stchauvin@yahoo.com  2002-08-12 23:59
-------
Created an attachment (id=2693)
Second proposition with FilterReader implementation

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>