Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 67911 invoked from network); 4 Apr 2002 05:51:45 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 4 Apr 2002 05:51:45 -0000 Received: (qmail 7993 invoked by uid 97); 4 Apr 2002 03:45:37 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 7977 invoked by uid 97); 4 Apr 2002 03:45:37 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 7958 invoked from network); 4 Apr 2002 03:45:36 -0000 Message-ID: <00a901c1db8b$1da982f0$a8a1f40f@Stelvio> From: "Steve Loughran" To: "Ant Developers List" References: Subject: Re: [SUBMIT] SerialVer and ReplaceSUID Tasks Date: Wed, 3 Apr 2002 19:45:08 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "Stephane Chauvin" To: Sent: Wednesday, April 03, 2002 11:53 AM Subject: [SUBMIT] SerialVer and ReplaceSUID Tasks > I propose to add the org.apache.tools.ant.taskdefs.optional.serialver > package to support the serialver functionality. > > There is 2 tasks: > -serialver: Echoes the serialVersionUID of a serializable class. This is > just a wrapping of the serialver executable provide by the JDK. > -replacesuid: Replace in a source file a token with the serialVersionUID. > Interesting -and with unit tests too. nice. As usual, please file this in bugzilla with attachments and harangue the mailing list till its inclusion gets resolved one way or the other. A couple of questions 1. why do you exec serialver instead of using the java task? This can fork too, if that is needed, but it is better at classpath setup and the like. 2. Having code that edits java src insitu scares me. I would be happier with something which generated a new copy of the file in a destination directory...we could then add version checking so that the work is only done if the src file is newer than the one in the dest dir. would that work? How are you using the tasks in your build files. -steve -- To unsubscribe, e-mail: For additional commands, e-mail: