Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 16537 invoked from network); 12 Aug 2002 18:03:30 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Aug 2002 18:03:30 -0000 Received: (qmail 7764 invoked by uid 97); 12 Aug 2002 18:03:55 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 7748 invoked by uid 97); 12 Aug 2002 18:03:55 -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 7736 invoked by uid 98); 12 Aug 2002 18:03:54 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-MIMEOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Implementing the Clonable interface in a task Date: Mon, 12 Aug 2002 11:03:25 -0700 Message-ID: <8231A018D1F5A840B492017C77711386DBA484@EXCHANGE05.corp.standard.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Implementing the Clonable interface in a task Thread-Index: AcJCKSbM8vEgXAYXQ8achAxoBG4HNQAAO9YQ From: "Steven Newton" To: "Ant Developers List" X-OriginalArrivalTime: 12 Aug 2002 18:03:25.0497 (UTC) FILETIME=[8DCE6A90:01C2422A] 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: Steve Loughran [mailto:steve_l@iseran.com] > ----- Original Message ----- > From: > > The simplest way to configure the CVS instance > > used by the utility is to simply clone the CVS instance=20 > within the client > > class and pass it to the utility class's constructor or as=20 > an argument to > > any static method. >=20 > How about teasing the CVS configuration into a self contained=20 > object? Or > pass a non-cloned reference in? >=20 If you really do need a copy (not a reference) to the CVS instance, consider implementing a "copy constructor", either a constructor that takes an instance of its own class as a parameter, or a static newInstance method, that creates a copy of the instance passed in as a parameter. Cloneable and clone() are tricky to get right. s -- To unsubscribe, e-mail: For additional commands, e-mail: