ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: <replaceregexp> to wipe out everything in a file
Date Fri, 18 Jun 2004 15:44:53 GMT
No, had a look at the source.
ShellScriptTask extends ExecTask.

Simply
- write the text to a tmp file
- get the appropriate script runner (perl, ruby, groovy, python, bsh, cmd,
what else)
- run that

Jan

> -----Original Message-----
> From: Woodchuck [mailto:woodchuck_5@yahoo.com]
> Sent: Friday, June 18, 2004 5:42 PM
> To: Ant Users List
> Subject: RE: <replaceregexp> to wipe out everything in a file
> 
> 
> wow, even more possibilities!  my perl is really
> rusty.. i haven't used it since 1996 :(
> 
> i'm on Windows platform, <shellscript> is for unix,
> right?
> 
> 
> --- Jan.Materne@rzf.fin-nrw.de wrote:
> > Oh, then you can do 
> > 
> > <exec executable="perl">
> >  ...
> > </exec>
> > 
> > or with antcotnrib a 
> > 
> > <shellscript language="perl">
> >    ...
> > </shellscript>
> > 
> > 
> > :-))
> > 
> > Jan
> > 
> > > -----Original Message-----
> > > From: sten.rosendahl@sungard.com
> > [mailto:sten.rosendahl@sungard.com]
> > > Sent: Friday, June 18, 2004 5:10 PM
> > > To: user@ant.apache.org
> > > Subject: RE: <replaceregexp> to wipe out
> > everything in a file
> > > 
> > > 
> > > You sound like a Perl fan... ;-)
> > > 
> > > Sten Rosendahl
> > > 
> > > > -----Original Message-----
> > > > From: Woodchuck [mailto:woodchuck_5@yahoo.com] 
> > > > Sent: Friday, June 18, 2004 4:58 PM
> > > > To: Ant Users List
> > > > Subject: Re: <replaceregexp> to wipe out
> > everything in a file
> > > > 
> > > > 
> > > > hehe, no nothing is wrong with my current
> > > > <replaceregexp> solution, i'm just open to other
> > > > alternatives solutions that can do the same
> > thing. 
> > > > it's great to discover more than one way for
> > doing
> > > > something!  :)
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> > user-help@ant.apache.org
> > > 
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message