Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 65157 invoked from network); 16 Jan 2001 03:50:40 -0000 Received: from clmboh1-smtp2.columbus.rr.com (65.24.0.111) by h31.sny.collab.net with SMTP; 16 Jan 2001 03:50:40 -0000 Received: from win2000 (dhcp065-024-153-085.columbus.rr.com [65.24.153.85]) by clmboh1-smtp2.columbus.rr.com (8.11.2/8.11.2) with SMTP id f0G3mUp27090 for ; Mon, 15 Jan 2001 22:48:30 -0500 (EST) From: "James Cook" To: Subject: RE: Ant 2.0 - Frantic: How are properties resolved? Date: Mon, 15 Jan 2001 22:48:14 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <3.0.6.32.20010116124036.00961b30@alphalink.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > -----Original Message----- > From: Peter Donald [mailto:donaldp@apache.org] > yep - but now why do you need the runtime tree? ;) Why not just > use a proxy > tree. The only advantage I see of the runtime tree is to make everything a > "task". However you will eventually have to deal with "tasks" like target > that can not have their proxy data evaluated when they are > evaluated. Which > puts you precisely back to the start where each task instance is just a > convenience 20 line class. At which point the whole advantage of the > "everything is a class" approach fails I believe. Feel free to convince me > otherwise thou ;) The runtime tree allows variables to have scope much like a compiler engine works when making nested or recursive method calls. Properties (variables) can be set by a task then a sub task is invoked with the variable equal to that value. Next the subtask could change the value and invoke another subtask. As the tasks finish, any variable settings they have made are lost as they are popped off the stack. (Unless of course, they changed a global variable which should be allowed.) Also, scripting support would benefit greatly from being able to dynamically change the execution path, or perhaps invoking the same task several times, but with different property values. jim