You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Mike Stewart <MS...@mgtplc.com> on 2006/08/11 12:10:43 UTC

Text scripts

Hi,

I have some text files that I have to parse and modify, can anyone
advise the best way to do this - ANT commands, ANT Tasks, call to PERL
or some other scripting language? The scripts will be fairly complex
including pattern searching, text replacement, text sorting etc.

Regards,
Mike S.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Text scripts

Posted by Kev Jackson <fo...@gmail.com>.
On 11 Aug 2006, at 17:10, Mike Stewart wrote:

> Hi,
>
> I have some text files that I have to parse and modify, can anyone
> advise the best way to do this - ANT commands, ANT Tasks, call to PERL
> or some other scripting language? The scripts will be fairly complex
> including pattern searching, text replacement, text sorting etc.

I'd have to say that using PERL or some other dynamic language with  
good text parsing support would be better than Ant.  If you want to  
do this parsing within an ant target, perhaps consider JRuby or  
Groovy or BeanShell and the scripting support in Ant.

Kev

--
"Government is begotten of aggression, by aggression" - Herbert Spencer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Text scripts

Posted by Jeffrey E Care <ca...@us.ibm.com>.
I don't think this is an appropriate question for the Ant developer list, 
but text processing is what Perl was designed for.

____________________________________________________________________________________________ 

Jeffrey E. (Jeff) Care 
carej@us.ibm.com 
IBM WebSphere Application Server Development 
WAS Pyxis Lead Release Engineer 






"Mike Stewart" <MS...@mgtplc.com> 
08/11/2006 06:10 AM
Please respond to
"Ant Developers List" <de...@ant.apache.org>


To
<de...@ant.apache.org>
cc

Subject
Text scripts






Hi,

I have some text files that I have to parse and modify, can anyone
advise the best way to do this - ANT commands, ANT Tasks, call to PERL
or some other scripting language? The scripts will be fairly complex
including pattern searching, text replacement, text sorting etc.

Regards,
Mike S.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org