ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Creating a list of entries
Date Wed, 13 Feb 2008 08:56:31 GMT
<replaceregexp> replacint "=" by " : " ?

Jan 

> -----Urspr√ľngliche Nachricht-----
> Von: Z W [mailto:mpc8250@gmail.com] 
> Gesendet: Mittwoch, 13. Februar 2008 09:30
> An: Ant Users List
> Betreff: Re: Creating a list of entries
> 
> Jan
> 
> I have a list of entries in a properties file
> 
> apple=1
> orange=2
> pear=3
> 
> My Ant script is on Windows box. I'll sshexec to my unix box.
> 
> I like to create a file, say x2.txt, from my Ant script so 
> that this file
> x2.txt in my unix box like this
> 
> apple : 1
> orange : 2
> pear : 3
> This x2.txt will be an input to my perl script to read this 
> list as input
> eg
> perl c1.pl -f x2.txt
> This command will be executed using Ant's sshexec task.
> 
> I don't know how to create a file x2.txt from my Ant properties file.
> Is there any easy way ?
> 
> 
> 
> On Feb 12, 2008 11:48 PM, <Jan.Materne@rzf.fin-nrw.de> wrote:
> 
> > My first thought was: <copy>
> > My second thought is: what do want to achieve? Can you post 
> an example?
> >
> >
> > Jan
> >
> > > -----Urspr√ľngliche Nachricht-----
> > > Von: Z W [mailto:mpc8250@gmail.com]
> > > Gesendet: Mittwoch, 13. Februar 2008 07:48
> > > An: Ant Users List
> > > Betreff: Creating a list of entries
> >  >
> > > Hi
> > >
> > > I have a list of properties in a properties file.
> > > I like to write these property values into a file to be used
> > > as an input to
> > > a shell script using sshexec task.
> > > I like to know if there's way to achieve this using Ant.
> > > Any suggestions ?
> > >
> > > Thanks
> > >
> >
> > 
> ---------------------------------------------------------------------
> > 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


Mime
View raw message