Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 54928 invoked from network); 20 Aug 2007 17:26:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Aug 2007 17:26:05 -0000 Received: (qmail 45384 invoked by uid 500); 20 Aug 2007 17:25:58 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 45356 invoked by uid 500); 20 Aug 2007 17:25:58 -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 45345 invoked by uid 99); 20 Aug 2007 17:25:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2007 10:25:58 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.58.158] (HELO web55109.mail.re4.yahoo.com) (206.190.58.158) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 20 Aug 2007 17:25:52 +0000 Received: (qmail 43423 invoked by uid 60001); 20 Aug 2007 17:25:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=1w1GhfjaQL2w2WQZZkWeWSQ47cnO6czqTC1mYUyIAHcYxwqZjipDtNuHITsK75Gsw/hYjkesSaDmvnCEYLAduvajAvmbohJnvsYVhRAFECrCCw22jfF96IxxqMysd6vfJ5AcALZPYgV7rXXTlgFjxT3qpbgg6U1BgFrcpp2/z0I=; X-YMail-OSG: OmMFaNkVM1keqsI17EsV40ach6OHTVkwcrwFXYfS8lcenVEcSm3FNWNZhff6ad2RrTuIN.lkFrmUaP6wpu27OnyNEB8k0NFkoOElR_rIPPxcFX1WMcTbcYjSRMIyiQ-- Received: from [67.142.130.31] by web55109.mail.re4.yahoo.com via HTTP; Mon, 20 Aug 2007 10:25:29 PDT Date: Mon, 20 Aug 2007 10:25:29 -0700 (PDT) From: Matt Benson Subject: RE: for task with inline exec? To: Ant Users List In-Reply-To: <327BBBAD6F12294EAD9934A2BB5E769B052E763E@MSGDALCLN2WIN.DMN1.FMR.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <669213.43017.qm@web55109.mail.re4.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --- "Ditrick, Gregory" wrote: > Not a bad idea to use , if you are > not doing cross > platform stuff. > The use of a lot of this type of thing, > , can make the > ant script platform dependent or you will require > additional products > like Cygwin for Windows. > > Using redirectors can make this type of thing > platform independent. > But, I've found that you usually have to use > intermediate flat files to > re-create all the pipes. This then has the cost of > I/O, but gives you > an the desired platform independent scripts. > I confess myself curious to see a exec/redirector situation so complex it cannot be solved by nested filterchains. I'm sure it's possible to concoct such a scenario, but most real-world requirements I would imagine can be done in a single pass. FWIW, Matt > So, you have to weigh the solution with big picture. > If you are never > ever going to another platform like Microsoft then > definitely use the > task. If there is any chance of > going to Microsoft use > redirectors and intermediate files. > > Using intermediate files then you use the > task with a command in > a property like ${os.filedump.cmd} and redirectors > to get your desired > output. In a os specific properties file you'll set > os.filedump.cmd to > the desired command: i.e. cat for unix, type for > windows, etc. A lot > more work, but will save you a lot of time if you > have to move your > script from Unix to Windows. And then you are not > dependent on Cygwin > being installed on the Windows box. > > Again, you must weigh and see the big picture: if > the ant script will > never ever be ran on Windows, then use > . Or, you'll be > okay if having Cygwin install on the Windows box is > not a big burden > (lots of boxes or don't have admin rights on all > Windows' boxes). > > My 2 cents on the subject. > > Keep smiling, > > GregD > 6-8309 > > -----Original Message----- > From: Vihan Pandey [mailto:vihanpandey@gmail.com] > Sent: Monday, August 20, 2007 10:35 AM > To: Ant Users List > Subject: Re: for task with inline exec? > > > Why not use shellscript? > > didn't think of it :-) > > ---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<------ > -8-<---- > > > cat deploy.properties | grep .js-version| sed > s/.js-version=v.[0-9]*/,/g | tr -d '\n' | sed > s/,$//g > > > JS list: ${js.list} > > > > > token="/javascripts/@{myval}.js" > value="http://js.cleartrip.com/javascripts/@{myval}.${@{myval}.js-versio > n}.js" > > > > > > > > > ---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<------ > -8-<---- > > Now it works beautifully :-) > > Thanks a million Jan and Peter !!! > > Regards, > > -vihan > > --------------------------------------------------------------------- > 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 > > ____________________________________________________________________________________ Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org