Re: converting ant from a make file

2009-09-19 Thread Ernst de Haan
Veena, Here's a good example of what can be done with Ant, with a very complete collection of example code: http://www.theserverside.com/news/thread.tss?thread_id=57900 About the execution of Perl: typically with Ant, you define a task (execution of Perl) and then define the files to inclu

Re: converting ant from a make file

2009-09-18 Thread Stephen Connolly
n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > From: er...@pensioenpage.com > > T

RE: converting ant from a make file

2009-09-18 Thread Martin Gainty
les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: er...@pensioenpage.com > To: user@ant.apache.org > Subject: Re: converting ant from a make file > Date: Fri, 18 Sep 2009 19:22:23 +0200 &g

Re: converting ant from a make file

2009-09-18 Thread veena pandit
I read up about it and I wrote the script. While testing it I get an error. Cannot run perl.exe from the directory C:\Perl\bin; Thanks in advance, Veena On Fri, Sep 18, 2009 at 1:22 PM, Ernst de Haan wrote: > I think by now you should read up on Ant and understand the basic concepts > before

Re: converting ant from a make file

2009-09-18 Thread Ernst de Haan
I think by now you should read up on Ant and understand the basic concepts before proceeding... Met een vriendelijke groet, Ernst de Haan PensioenPage B.V. www.pensioenpage.com tel. (026) 364 56 34 Op 18 sep 2009 om 18:53 heeft veena pandit het volgende geschreven:\ So how would I wri

Re: converting ant from a make file

2009-09-18 Thread veena pandit
So how would I write it in the build.xml for c in A B C D E; 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; but it is executing the same pl file against different

Re: converting ant from a make file

2009-09-18 Thread Ernst de Haan
The Ant way to process multiple Perl files would be: See? It's a different way of thinking... Met een vriendelijke groet, 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 posti

Re: converting ant from a make file

2009-09-18 Thread veena pandit
Do you mind posting a small example of the exec command with the script: for c in A B C D E; do? Thanks, Veena On Fri, Sep 18, 2009 at 10:38 AM, John Shott wrote: > Veena: > > for c in A B C D E; do >> perl ... >> perl ... >> perl... >> - mkdir Backup >> mv *bak Backup >>

Re: converting ant from a make file

2009-09-18 Thread John Shott
Veena: for c in A B C D E; 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, you can simply call the existing script using something like the exec task

Re: converting ant from a make file

2009-09-18 Thread veena pandit
Great Thanks! Next I have a some kind of a script: for c in A B C D E; do perl ... perl ... perl... - mkdir Backup mv *bak Backup How do I move this script over to ant build.xml. Thanks, Veena On Fri, Sep 18, 2009 at 9:24 AM, Ernst de Haan wrote: > Based on what y

Re: converting ant from a make file

2009-09-18 Thread Ernst de Haan
Based on what you said, I am looking to eliminate the OS- differenes. But this is what I have. In the makefile.linux: LOCAL = /usr/local/project_name In the makefile.Windows_NT LOCAL = C:/Project_name. How do I avoid this? If I removed the differences what would the universal LOCAL look l

Re: converting ant from a make file

2009-09-18 Thread veena pandit
Based on what you said, I am looking to eliminate the OS-differenes. But this is what I have. In the makefile.linux: LOCAL = /usr/local/project_name In the makefile.Windows_NT LOCAL = C:/Project_name. How do I avoid this? If I removed the differences what would the universal LOCAL look like?

Re: converting ant from a make file

2009-09-18 Thread Ernst de Haan
Veena, How does the operating system know when to execute makefile.linux and makefile.Windows_NT. How do I do this in ant? Normally, you should avoid any OS-differences. Really. Try to get rid of all OS-specific stuff as much as you can. So much for the theory. Now the practice is that t

converting ant from a make file

2009-09-18 Thread veena pandit
the first line of the makefile is makefile.${OSTYPE}${OS} How does the operating system know when to execute makefile.linux and makefile.Windows_NT. How do I do this in ant? Thanks, Veena