Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 10881 invoked from network); 28 Oct 2003 14:37:23 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Oct 2003 14:37:23 -0000 Received: (qmail 15845 invoked by uid 500); 28 Oct 2003 14:37:11 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 15811 invoked by uid 500); 28 Oct 2003 14:37:11 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 15797 invoked from network); 28 Oct 2003 14:37:10 -0000 Received: from unknown (HELO junior.lgc.com) (134.132.72.99) by daedalus.apache.org with SMTP; 28 Oct 2003 14:37:10 -0000 Received: from lgchvw01.lgc.com (lgchvw01.lgc.com [134.132.93.107]) by junior.lgc.com (8.11.7/8.11.3) with SMTP id h9SEa1Q24392 for ; Tue, 28 Oct 2003 08:36:01 -0600 (CST) Received: from 134.132.93.152 by lgchvw01.lgc.com (InterScan E-Mail VirusWall NT); Tue, 28 Oct 2003 08:37:11 -0600 Received: by lgchexchbh.ad.lgc.com with Internet Mail Service (5.5.2657.72) id ; Tue, 28 Oct 2003 08:37:11 -0600 Message-ID: From: Dominique Devienne To: "'Ant Users List'" Subject: RE: scripting tips Date: Tue, 28 Oct 2003 08:37:10 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > From: Erik Hatcher [mailto:erik@ehatchersolutions.com] > > On Monday, October 27, 2003, at 05:49 PM, Stirling, Scott wrote: > > > So, e.g., corresponds to > > setSrc()/setDest() methods on the Extract task that take > > java.io.Files, not Strings. > > When does the type information become a problem for you? It's just the > initial headache of crafting a call to setSrc, right? But once you > match up the types all is well, I'm guessing. Most Java scripting engines allow you to assign Bean-like properties as if they were just simple members: unzip = ...; unzip.src = new File("foo"); unzip.dest = new File("bar"); So it shouldn't be much different than the XML syntax. You just have to be aware that this will probably not perform the automatic String -> Type that Ant core does, thus the need to pass an actual File above. Not tested... --DD --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org