ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Z W" <mpc8...@gmail.com>
Subject Re: Creating a list of entries
Date Wed, 13 Feb 2008 09:53:34 GMT
This task seems to replace/overwrites the existing file.
Is there a way to write to another file ?

On Feb 13, 2008 1:22 AM, Z W <mpc8250@gmail.com> wrote:

> Jan
>
> If it's ok with you, can you elaborate more in how to create such a file
> wth such a replacement ?
>
>   On Feb 13, 2008 12:56 AM, <Jan.Materne@rzf.fin-nrw.de> wrote:
>
> > <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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message