Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 74914 invoked by uid 500); 19 Apr 2001 16:29:07 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 74723 invoked from network); 19 Apr 2001 16:29:01 -0000 From: John.D.Casey@mail.sprint.com X-OpenMail-Hops: 1 Date: Thu, 19 Apr 2001 11:28:57 -0500 Message-Id: Subject: RE: Re: [PATCH] comma separated PVCS projects MIME-Version: 1.0 TO: ant-dev@jakarta.apache.org Content-Type: multipart/mixed; boundary="openmail-part-20a99cba-00000001" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N --openmail-part-20a99cba-00000001 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline ;Creation-Date="Thu, 19 Apr 2001 11:28:57 -0500" Content-Transfer-Encoding: 7bit try implementing a createPvcsproject() method in the Pvcs task with the following signature: public PvcsProject createPvcsproject(); Then, initialize the PvcsProject and return it within this method. The IntrospectionHelper will take care of fleshing out the actual object you return, provided it has the normal add...() and set...() and create...() methods... John -----Original Message----- From: wierzbickif [mailto:wierzbickif@yahoo.com] Sent: Thursday, April 19, 2001 10:43 AM To: ant-dev Cc: wierzbickif Subject: Re: [PATCH] comma separated PVCS projects Ant Developers, I was hoping that implementing an addPvcsproject method would just involve creating a vector pvcsProjects and adding these lines: public void addPvcsproject(String prj) { pvcsProjects.addElement(prj); } However, when I do this and add a subelement to I get: d:\build.xml:105: Class org.apache.tools.ant.taskdefs.optional.Pvcs doesn't support the nested "pvcsproject" element >From looking at other "add" methods, I was guessing that some sort of introspection is being used, and this works at least with various types of FileSet as well as with Environment.Variable classes. I'm wondering if anyone can point me in the right direction as to how to make this add method work... Thanks in advance, Frank Wierzbicki --- Stefan Bodewig wrote: > Frank Wierzbicki wrote: > > > Personally, I'd like something that avoided the comma separated > > list, > > +1 > > > I think this can be implemented with an addPvcsproject method. > > Yes, this what you'd have to do. > > Stefan __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ --openmail-part-20a99cba-00000001--