Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 38648 invoked from network); 11 Oct 2002 18:01:48 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Oct 2002 18:01:48 -0000 Received: (qmail 22597 invoked by uid 97); 11 Oct 2002 18:02:34 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 22558 invoked by uid 97); 11 Oct 2002 18:02:33 -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 22452 invoked by uid 97); 11 Oct 2002 18:02:30 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: 11 Oct 2002 18:01:33 -0000 Message-ID: <20021011180133.47631.qmail@icarus.apache.org> From: costin@apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/proposal/embed/src/java/org/apache/tools/ant PropertyHelper.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N costin 2002/10/11 11:01:33 Modified: proposal/embed/src/java/org/apache/tools/ant PropertyHelper.java Log: Few small changes and comments. I would like to extend it a bit more in the future - to support properties like "${property}" without a string conversion. In other workds, if a dynamic property is used ( which return an object ), the object should be used as such in the introspection. That would greatly simplify tasks and allow more flexibility. Revision Changes Path 1.3 +11 -13 jakarta-ant/proposal/embed/src/java/org/apache/tools/ant/PropertyHelper.java Index: PropertyHelper.java =================================================================== RCS file: /home/cvs/jakarta-ant/proposal/embed/src/java/org/apache/tools/ant/PropertyHelper.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- PropertyHelper.java 27 Jul 2002 02:20:15 -0000 1.2 +++ PropertyHelper.java 11 Oct 2002 18:01:33 -0000 1.3 @@ -67,13 +67,12 @@ /** * Deals with properties - substitution, dynamic properties, etc. * - * Eventually the static methods from ProjectHelper should be - * moved here ( with a wrapper for backward compat ). + * Important: the static methods from ProjectHelper belong here. They should + * be changed to wrap this. * - * Also the property store ( Hashtable ) and all property manipulation - * logic could be moved here. + * Also the property store ( Hashtable ) from Project and all property manipulation + * logic should be moved here ( and delegated to interceptors ). * - * @author Stefan Bodewig * @author Costin Manolache */ public class PropertyHelper { @@ -105,10 +104,6 @@ public void addPropertyInterceptor( PropertyInterceptor pi ) { propertyInterceptors.addElement( pi ); } - -// public Vector getPropertyInterceptors() { -// return propertyInterceptors; -// } /** Process an value, doing the replacements. */ @@ -168,7 +163,6 @@ Object processDynamic( Project project, String name ) { for(int i=0; i For additional commands, e-mail: