Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 61947 invoked from network); 1 Jul 2004 14:55:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jul 2004 14:55:47 -0000 Received: (qmail 3093 invoked by uid 500); 1 Jul 2004 14:55:52 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 2964 invoked by uid 500); 1 Jul 2004 14:55:49 -0000 Mailing-List: contact dev-help@ant.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 dev@ant.apache.org Received: (qmail 2942 invoked by uid 99); 1 Jul 2004 14:55:49 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [207.217.120.84] (HELO gull.mail.pas.earthlink.net) (207.217.120.84) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 01 Jul 2004 07:55:48 -0700 Received: from gonzo.psp.pas.earthlink.net ([207.217.78.242]) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1Bg2yP-0002LK-00 for dev@ant.apache.org; Thu, 01 Jul 2004 07:55:37 -0700 Message-ID: <3812545.1088693737614.JavaMail.root@gonzo.psp.pas.earthlink.net> Date: Thu, 1 Jul 2004 10:55:36 -0400 (GMT-04:00) From: Barry Andrews Reply-To: Barry Andrews To: dev@ant.apache.org Subject: BeanGen Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Zoo Mail 1.0 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Dev, I have a task that I wrote that will take a file containing types and identifiers and creates a compilable Java source file with all the getter/setter methods. Saves me a lot of typing. So the task looks like this: (minus a couple other options) The test.txt file looks like this: int id String name and from that I generate the following code. package swerdna.test; import java.io.Serializable; public class Test implements Serializable { private String m_strname; private int m_nid; public Test() { } public void setName(String name) { m_strname = name; } public String getName() { return m_strname; } public void setId(int id) { m_nid = id; } public int getId() { return m_nid; } public boolean equals(Object obj) { //TODO Implement return false; } public int hashCode() { //TODO Implement return 0; } public String toString() { //TODO Implement return null; } } If anyone thinks this task has any value and wants to take the time and effort to do all the required steps to get it in the package I will gladly submit the source code. Or maybe someone else had already thought of this task? If so that's fine. Just thought I would make it known. thanks, Barry --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org