Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 58844 invoked by uid 500); 17 Jun 2003 21:10:58 -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 58833 invoked from network); 17 Jun 2003 21:10:57 -0000 Received: from unknown (HELO mailrelay.mdli.com) (208.200.221.8) by daedalus.apache.org with SMTP; 17 Jun 2003 21:10:57 -0000 Received: from puffin.mdli.com (puffin.mdli.com [172.16.1.12]) by mailrelay.mdli.com (Postfix) with ESMTP id 99D99B623F for ; Tue, 17 Jun 2003 14:11:00 -0700 (PDT) Received: from exch-sl02.mdli.com by puffin.mdli.com (980427.SGI.8.8.8/BCH1.0) id OAA46517; Tue, 17 Jun 2003 14:11:00 -0700 (PDT) Received: by exch-sl02.mdli.com with Internet Mail Service (5.5.2653.19) id ; Tue, 17 Jun 2003 14:10:59 -0700 Message-ID: From: Alexey Solofnenko To: "'Ant Developers List'" Subject: RE: scriptdef Date: Tue, 17 Jun 2003 14:10:50 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N There seems a bug in - it does not expand properties: #script print ">>>>>> name='"+str(attributes.get('name'))+"'" prints >>>>>> name='${test}' Do I need to do it manually? - Alexey. -- { http://trelony.cjb.net/ } Alexey N. Solofnenko Pleasant Hill, CA (GMT-8 usually) -----Original Message----- From: Conor MacNeill [mailto:conor@cortexebusiness.com.au] Sent: Monday, June 09, 2003 6:58 AM To: Ant Developers List Subject: scriptdef Hi all, I've just added a task to allow tasks to be created using scripts. It's loosely based on something I wrote a while back for Mutant. Attached below is an example usage. I had to make a few small mods to the core to give me enough control over the configuration of the task and its nested elements. The example should make usage pretty straight forward. Attributes and nested elements are passed in two script variables, oddly named "attributes" and "elements". The first of these is a simple map of Strings whilst the second is a map of lists. One question I have is whether people feel this is something appropriate in Ant? Let me know your thoughts. Formal documentation to follow ... Conor --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org