Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 99877 invoked from network); 23 Aug 2005 16:37:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2005 16:37:37 -0000 Received: (qmail 91759 invoked by uid 500); 23 Aug 2005 16:37:31 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 91708 invoked by uid 500); 23 Aug 2005 16:37:31 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 91692 invoked by uid 99); 23 Aug 2005 16:37:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2005 09:37:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [64.119.142.36] (HELO archimail.archivas.com) (64.119.142.36) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2005 09:37:48 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by archimail.archivas.com (Postfix) with ESMTP id 2BA1E4F4013 for ; Tue, 23 Aug 2005 12:37:28 -0400 (EDT) Received: from archimail.archivas.com ([127.0.0.1]) by localhost (archimail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02195-02 for ; Tue, 23 Aug 2005 12:37:26 -0400 (EDT) Received: from [192.168.100.221] (unknown [192.168.100.221]) by archimail.archivas.com (Postfix) with ESMTP id 528BD4F400D for ; Tue, 23 Aug 2005 12:37:26 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v733) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7BACA5AB-8ECC-485A-B17A-DC199D392C01@archivas.com> Content-Transfer-Encoding: 7bit From: EJ Ciramella Subject: Re: can ant solve this rather complex challenge Date: Tue, 23 Aug 2005 12:36:28 -0400 To: "Ant Users List" X-Mailer: Apple Mail (2.733) X-Virus-Scanned: amavisd-new at archivas.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Could Apply/ExecOn be your solution? On Aug 23, 2005, at 12:28 PM, Scott Bell wrote: > > > Problem statement: > > I have a number of simple tcl scripts, and they take a set number > of params as input (argv). Usually 1-10 params. They can all run > standalone, but have dependencies. ANT is therefore perfect for them. > > I have the params that I send to the scripts as named value pairs > in a set of property files. We clone the property files for each > objects we want created. > > For example > > hostobject1.properties > hostobject2.properties > > we would send to hostobject.tcl twice to create two objects. > > Ok, so far...but, its not a good way to run a deployment, run a > script twice manually. > > But it gets more complicated. There are about 10 difference scripts > and with each script, we often need to create many objects, each > with its own properties. > > So here is the solution (question is, can ANT make it possible): > > We want to run each one of the scripts, once for every property > file that EXISTS, and we want to use ant to drive the whole thing. > > So, if there is a hostobject5..properties file..in a directory, ant > knows it needs to run the script for it to create the object. > > So ant goes and > 1. finds the properties files > 2. understands from the name of the property file what task to > execute and pass it to > 3. iterates over all files, calls the correct task once for each > property file it has > > Even better, we can put cloned property files into directories to > keep everything neat and tidy. > > How do we do this? Can ANT make it work? or do I need a shell script. > > There are filesets, macrodefs..etc. > > We use 1.5 of ant, but..can upgrade to 1.6, if required. 1.5 > solution preferred. > > _________________________________________________________________ > It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! > http://messenger.msn.co.uk > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org