Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 14366 invoked from network); 18 Sep 2009 20:22:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Sep 2009 20:22:16 -0000 Received: (qmail 1384 invoked by uid 500); 18 Sep 2009 20:22:15 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 1309 invoked by uid 500); 18 Sep 2009 20:22:15 -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 1299 invoked by uid 99); 18 Sep 2009 20:22:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 20:22:15 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.55.111.145 as permitted sender) Received: from [65.55.111.145] (HELO blu0-omc4-s6.blu0.hotmail.com) (65.55.111.145) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 20:22:03 +0000 Received: from BLU142-W15 ([65.55.111.137]) by blu0-omc4-s6.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 18 Sep 2009 13:21:43 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_79fde400-6fee-4293-a0ab-c9c673b46640_" X-Originating-IP: [96.237.35.254] From: Martin Gainty To: Ant Users List Subject: RE: converting ant from a make file Date: Fri, 18 Sep 2009 16:21:43 -0400 Importance: Normal In-Reply-To: <43BE45C2-F8D1-4211-9106-C1CFBD5C6D01@pensioenpage.com> References: <68C42FBB-AE3B-4C2A-B94C-928CE9E25DE3@pensioenpage.com> <4AB39B72.1040800@stanford.edu> <268A3604-E415-4DDA-8ABC-562C5B1AC38B@pensioenpage.com> <43BE45C2-F8D1-4211-9106-C1CFBD5C6D01@pensioenpage.com> MIME-Version: 1.0 X-OriginalArrivalTime: 18 Sep 2009 20:21:43.0345 (UTC) FILETIME=[A3410A10:01CA389D] X-Virus-Checked: Checked by ClamAV on apache.org --_79fde400-6fee-4293-a0ab-c9c673b46640_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable you can implement *the majority* of what you're trying to accomplish using = maven Native Archive Plugin http://java.freehep.org/freehep-nar-plugin/intro.html be aware this is a brand new plugin is attempting to emulate every make=2Cc= ompile and link tool available for every OS and library set so as with all things which are bran= d new *caveat emptor* i presume you already downloaded php? http://www.php.net/downloads.php a fairly active and supportive user community is available at http://maven.apache.org/mail-lists.html bedankt=2C Martin Gainty=20 ______________________________________________=20 Verzicht und Vertraulichkeitanmerkung/Note de d=E9ni et de confidentialit= =E9 =20 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaeng= er sein=2C so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiter= leitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient l= ediglich dem Austausch von Informationen und entfaltet keine rechtliche Bin= dungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen w= ir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAtes= pas le destinataire pr=E9vu=2C nous te demandons avec bont=E9 que pour sat= isfaire informez l'exp=E9diteur. N'importe quelle diffusion non autoris=E9e= ou la copie de ceci est interdite. Ce message sert =E0 l'information seule= ment et n'aura pas n'importe quel effet l=E9galement obligatoire. =C9tant d= onn=E9 que les email peuvent facilement =EAtre sujets =E0 la manipulation= =2C nous ne pouvons accepter aucune responsabilit=E9 pour le contenu fourni= . > From: ernst@pensioenpage.com > To: user@ant.apache.org > Subject: Re: converting ant from a make file > Date: Fri=2C 18 Sep 2009 19:22:23 +0200 > CC: user@ant.apache.org >=20 > I think by now you should read up on Ant and understand the basic =20 > concepts before proceeding... >=20 > Met een vriendelijke groet=2C >=20 >=20 > Ernst de Haan > PensioenPage B.V. > www.pensioenpage.com >=20 > tel. (026) 364 56 34 >=20 > Op 18 sep 2009 om 18:53 heeft veena pandit het =20 > volgende geschreven:\ >=20 > > So how would I write it in the build.xml > > > > for c in A B C D E=3B do > > perl -ibak process.pl abc.txt > > perl -ibak process.pl def.txt > > perl -ibak proces.pl xyz.txt > > - mkdir Backup > > mv *bak Backup > > > > Not clear what this is doing=3B but it is executing the same pl file =20 > > against > > different input files. > > > > Sorry=2C but I don't quite get it yet. > > > > Thanks=2C > > > > Veena > > > > On Fri=2C Sep 18=2C 2009 at 12:41 PM=2C Ernst de Haan > >wrote: > > > >> The Ant way to process multiple Perl files would be: > >> > >> > >> > >> See? It's a different way of thinking... > >> > >> Met een vriendelijke groet=2C > >> > >> > >> Ernst de Haan > >> PensioenPage B.V. > >> www.pensioenpage.com > >> > >> tel. (026) 364 56 34 > >> > >> Op 18 sep 2009 om 17:12 heeft veena pandit het > >> volgende geschreven:\ > >> > >> > >> Do you mind posting a small example of the exec command with the =20 > >> script: > >>> for c in A B C D E=3B do? > >>> > >>> Thanks=2C > >>> > >>> Veena > >>> > >>> On Fri=2C Sep 18=2C 2009 at 10:38 AM=2C John Shott =20 > >>> wrote: > >>> > >>> Veena: > >>>> > >>>> for c in A B C D E=3B do > >>>> > >>>>> perl ... > >>>>> perl ... > >>>>> perl... > >>>>> - mkdir Backup > >>>>> mv *bak Backup > >>>>> > >>>>> How do I move this script over to ant build.xml. > >>>>> > >>>>> > >>>>> This is probably a bit hard to answer. In principle=2C you can =20 > >>>>> simply > >>>> call > >>>> the existing script using something like the exec task along with > >>>> appropriate arg values. Or=2C you can consider breaking the script = =20 > >>>> apart > >>>> and > >>>> call individual perl scripts with appropriate arguments. In =20 > >>>> general=2C > >>>> however=2C I think that you'll be happier if you are able to use the > >>>> built-in > >>>> ant tasks wherever possible and resort to things like the exec =20 > >>>> task only > >>>> when you absolutely need to. > >>>> > >>>> While I'm not a great authority on either make or ant=2C I did =20 > >>>> spend a > >>>> great > >>>> deal of time converting a good sized project with a bunch of =20 > >>>> Makefiles to > >>>> an > >>>> ant-based build. My experience is that if you try to simply do a > >>>> line-by-line conversion of your Makefiles into the ant =20 > >>>> equivalent=2C that > >>>> you > >>>> will not be terribly happy with the result. Why? Ant is not =20 > >>>> make and > >>>> they > >>>> approach things differently. > >>>> > >>>> I suspect that you'll be a lot happier with the result if you look > >>>> carefully at what Make is doing=2C make sure that you understand tha= t > >>>> fully=2C > >>>> and then look at ant to see how some of it's tasks can be =20 > >>>> harnessed to do > >>>> the same thing. For example=2C make tends to do things on a =20 > >>>> directory by > >>>> directory basis whereas ant has a much more sophisticated (to me at > >>>> least) > >>>> means of specifying filesets that become the target of a task. =20 > >>>> Also=2C ant > >>>> now has a wide range of tasks that perform interesting and often =20 > >>>> complex > >>>> elements of a build in a single step. You may even find it =20 > >>>> desirable (if > >>>> you have that flexibility) to restructure your source tree in a =20 > >>>> more "ant > >>>> friendly" structure. You may also find that some of the things =20 > >>>> that your > >>>> Perl scripts are doing are conveniently doable by ant tasks so =20 > >>>> that when > >>>> everything is done=2C instead of having a handful of Makefiles plus = =20 > >>>> Perl > >>>> scripts that you may have a single build.xml file. Of course=2C not > >>>> knowing > >>>> what your Perl scripts are doing .... they may be doing things =20 > >>>> that would > >>>> be > >>>> hard to do in ant. > >>>> > >>>> I hope that helps=2C > >>>> > >>>> John > >>>> > >>>> > >>>> > >>>> > >>>> ---=20 > >>>> ------------------------------------------------------------------ > >>>> To unsubscribe=2C e-mail: user-unsubscribe@ant.apache.org > >>>> For additional commands=2C e-mail: user-help@ant.apache.org > >>>> > >>>> > >>>> > >> --------------------------------------------------------------------- > >> To unsubscribe=2C e-mail: user-unsubscribe@ant.apache.org > >> For additional commands=2C e-mail: user-help@ant.apache.org > >> > >> >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: user-unsubscribe@ant.apache.org > For additional commands=2C e-mail: user-help@ant.apache.org >=20 _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. http://clk.atdmt.com/GBL/go/171222986/direct/01/= --_79fde400-6fee-4293-a0ab-c9c673b46640_--