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, <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> > 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to